Package org.galliumpowered.world.entity
Interface Player
- All Superinterfaces:
CommandCaller
,Entity
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addPermission
(String permission) Add a permission to the playervoid
Disconnect the playervoid
disconnect
(net.kyori.adventure.text.Component component) Disconnect the playergetGroup()
Get the player's groupGet the players permissionsdefault String
Get the player's prefixgetUUID()
Get the player's UUIDgetWorld()
Gets the player's currentWorld
default boolean
hasPermission
(String permission) Whether the player has a permissionvoid
kill()
Kill the playerdefault void
removePermission
(String permission) Remove a permission from the playervoid
sendMessage
(net.kyori.adventure.text.Component component) Sends a message to the playervoid
setGamemode
(Gamemode gamemode) Set the player'sGamemode
default void
Set a player's groupdefault void
Set the player's prefixvoid
teleport
(double x, double y, double z) Teleport the playerdefault void
ungroup()
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:
ArrayList
of permissions
-
sendMessage
void sendMessage(net.kyori.adventure.text.Component component) Sends a message to the player- Specified by:
sendMessage
in 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
-