Package org.galliumpowered.world.entity
Interface Player
- All Superinterfaces:
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 UUIDdefault boolean
hasPermission
(String permission) Whether the player has a permissiondefault 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 player
-
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- 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
-