public class FileManager.Users
extends java.lang.Object
Constructor and Description |
---|
Users() |
Modifier and Type | Method and Description |
---|---|
boolean |
addGroups(long uid,
java.lang.String group)
Add a existing group to a player
|
boolean |
addGroups(net.risingworld.api.objects.Player player,
java.lang.String group)
Add a existing group to a player
|
boolean |
addPermission(long uid,
java.lang.String permission)
Add a permission to a player
|
boolean |
addPermission(net.risingworld.api.objects.Player player,
java.lang.String permission)
Add a permission to a player
|
java.util.List<java.lang.Long> |
getAllUsers()
Get all players from the permission.yml
|
java.util.List<java.lang.String> |
getGroups(long uid)
Get the groups of the player
|
java.util.List<java.lang.String> |
getGroups(net.risingworld.api.objects.Player player)
Get a list of groups from the player
|
java.util.List<java.lang.String> |
getPermissions(long uid)
Get all permission from the player
|
java.util.List<java.lang.String> |
getPermissions(net.risingworld.api.objects.Player player)
Get all permission from the player
|
java.lang.String |
getPlayerChatColor(long uid)
Get the chat color (color for: sufix, prefix and playername - NOT for message!)
|
java.lang.String |
getPlayerChatColor(net.risingworld.api.objects.Player player)
Get the chat color (color for: sufix, prefix and playername - NOT for message!)
|
java.lang.String |
getPlayerPrefix(long uid)
Get the prefix of the player
|
java.lang.String |
getPlayerPrefix(net.risingworld.api.objects.Player player)
Get the perfix of the player
|
java.lang.String |
getPlayerSufix(long uid)
Get the sufix of the player
|
java.lang.String |
getPlayerSufix(net.risingworld.api.objects.Player player)
Get the sufix of the player
|
boolean |
hasGroup(long uid)
Checks if the player has a group
|
boolean |
hasGroup(net.risingworld.api.objects.Player player)
Chack, the player has a group
|
boolean |
removeGroups(long uid,
java.lang.String group)
Remove a existing group from a player
|
boolean |
removeGroups(net.risingworld.api.objects.Player player,
java.lang.String group)
Remove a existing group from a player
|
boolean |
removePermission(long uid,
java.lang.String permission)
Remove a permission from a player
|
boolean |
removePermission(net.risingworld.api.objects.Player player,
java.lang.String permission)
Remove a permission from a player
|
boolean |
setGroups(long uid,
java.lang.String group)
Set the group of the player and remove the old groups
|
boolean |
setGroups(net.risingworld.api.objects.Player player,
java.lang.String group)
Set the group of the player and remove the old groups
|
public java.util.List<java.lang.Long> getAllUsers()
public java.util.List<java.lang.String> getGroups(net.risingworld.api.objects.Player player) throws UserNotFoundException
player
- The playerUserNotFoundException
- - Throws, if the player is not foundpublic java.util.List<java.lang.String> getGroups(long uid) throws UserNotFoundException
uid
- The UID of the playerUserNotFoundException
- - Throws, if the player is not foundpublic boolean addGroups(net.risingworld.api.objects.Player player, java.lang.String group) throws UserNotFoundException
player
- The playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic boolean addGroups(long uid, java.lang.String group) throws UserNotFoundException
uid
- The UID of the playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic boolean removeGroups(net.risingworld.api.objects.Player player, java.lang.String group) throws UserNotFoundException
player
- The playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic boolean removeGroups(long uid, java.lang.String group) throws UserNotFoundException
uid
- The UID of the playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic boolean setGroups(net.risingworld.api.objects.Player player, java.lang.String group) throws UserNotFoundException
player
- The playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic boolean setGroups(long uid, java.lang.String group) throws UserNotFoundException
uid
- The UID of the playergroup
- The groupUserNotFoundException
- - Throws, if the player is not foundpublic java.util.List<java.lang.String> getPermissions(net.risingworld.api.objects.Player player) throws UserNotFoundException
player
- The playerUserNotFoundException
- - Throws, if the player is not foundpublic java.util.List<java.lang.String> getPermissions(long uid) throws UserNotFoundException
uid
- The UID of the playerUserNotFoundException
- - Throws, if the player is not foundpublic boolean addPermission(net.risingworld.api.objects.Player player, java.lang.String permission) throws UserNotFoundException
player
- The playerpermission
- The permissionUserNotFoundException
- - Throws, if the player is not foundpublic boolean addPermission(long uid, java.lang.String permission) throws UserNotFoundException
uid
- The UID of the playerpermission
- The permissionUserNotFoundException
- - Throws, if the player is not foundpublic boolean removePermission(net.risingworld.api.objects.Player player, java.lang.String permission) throws UserNotFoundException
player
- The playerpermission
- The permissionUserNotFoundException
- - Throws, if the player is not foundpublic boolean removePermission(long uid, java.lang.String permission) throws UserNotFoundException
uid
- The UID of the playerpermission
- The permissionUserNotFoundException
- - Throws, if the player is not foundpublic boolean hasGroup(net.risingworld.api.objects.Player player) throws UserNotFoundException
player
- The playerUserNotFoundException
- - Throws, if the player is not foundpublic boolean hasGroup(long uid) throws UserNotFoundException
uid
- The UID of the playerUserNotFoundException
- - Throws, if the player is not foundpublic java.lang.String getPlayerPrefix(net.risingworld.api.objects.Player player) throws UserNotFoundException, GroupNotFoundException
player
- The playerUserNotFoundException
- - Throws, if the player is not foundGroupNotFoundException
- - Throws, if the group is not foundpublic java.lang.String getPlayerPrefix(long uid) throws UserNotFoundException, GroupNotFoundException
uid
- The UID of the playerUserNotFoundException
- - Throws, if the player is not foundGroupNotFoundException
- - Throws, if the group is not foundpublic java.lang.String getPlayerSufix(net.risingworld.api.objects.Player player) throws UserNotFoundException, GroupNotFoundException
player
- The playerUserNotFoundException
- - Throws, if the player is not foundGroupNotFoundException
- - Throws, if the group is not found
de.pbplugins.java.permissionmanager.exception.GroupNotFoundExceptionpublic java.lang.String getPlayerSufix(long uid) throws UserNotFoundException, GroupNotFoundException
uid
- The UID of the playerUserNotFoundException
- Throws, if the player is not foundGroupNotFoundException
- Throws, if the group is not foundpublic java.lang.String getPlayerChatColor(net.risingworld.api.objects.Player player) throws UserNotFoundException, GroupNotFoundException
player
- The playerUserNotFoundException
- Throws, if the player is not foundGroupNotFoundException
- Throws, if the group is not foundpublic java.lang.String getPlayerChatColor(long uid) throws UserNotFoundException, GroupNotFoundException
uid
- The playerUserNotFoundException
- Throws, if the player is not foundGroupNotFoundException
- Throws, if the group is not found