Package org.galliumpowered.world.entity
Interface Player
- All Superinterfaces:
CommandCaller,Entity
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddPermission(String permission) Add a permission to the playervoidDisconnect the playervoiddisconnect(net.kyori.adventure.text.Component component) Disconnect the playergetGroup()Get the player's groupGet the players permissionsdefault StringGet the player's prefixgetUUID()Get the player's UUIDgetWorld()Gets the player's currentWorlddefault booleanhasPermission(String permission) Whether the player has a permissionvoidkill()Kill the playerdefault voidremovePermission(String permission) Remove a permission from the playervoidsendMessage(net.kyori.adventure.text.Component component) Sends a message to the playervoidsetGamemode(Gamemode gamemode) Set the player'sGamemodedefault voidSet a player's groupdefault voidSet the player's prefixvoidteleport(double x, double y, double z) Teleport the playerdefault voidungroup()Ungroup the playerMethods inherited from interface org.galliumpowered.command.CommandCaller
getPlayer, sendMessage
-
Method Details
-
getUUID
String getUUID()Get the player's UUID- Returns:
- the uuid
-
hasPermission
Whether the player has a permission- Parameters:
permission- the permission- Returns:
- whether the player has the permission
-
getPermissions
Get the players permissions- Returns:
ArrayListof permissions
-
sendMessage
void sendMessage(net.kyori.adventure.text.Component component) Sends a message to the player- Specified by:
sendMessagein interfaceCommandCaller- Parameters:
component- A component
-
disconnect
void disconnect(net.kyori.adventure.text.Component component) Disconnect the player- Parameters:
component- The reason for disconnecting them
-
disconnect
void disconnect()Disconnect the player -
getPrefix
Get the player's prefix- Returns:
- the prefix
-
getGroup
Get the player's group- Returns:
- the
Group
-
setGroup
Set a player's group- Parameters:
group- theGroup- Throws:
SQLException
-
addPermission
Add a permission to the player- Parameters:
permission- the permission node- Throws:
SQLException
-
removePermission
Remove a permission from the player- Parameters:
permission- the permission node- Throws:
SQLException
-
ungroup
Ungroup the player- Throws:
SQLException
-
setPrefix
Set the player's prefix- Parameters:
prefix- the prefix- Throws:
SQLException
-
teleport
void teleport(double x, double y, double z) Teleport the player- Parameters:
x- The X coordinatey- The Y coordinatez- The Z coordinate
-
setGamemode
Set the player'sGamemode- Parameters:
gamemode- TheGamemode
-
kill
void kill()Kill the player -
getWorld
World getWorld()Gets the player's currentWorld- Returns:
- Player world
-