public class PermissionManager
extends net.risingworld.api.Plugin
| Modifier and Type | Field and Description |
|---|---|
FileManager |
api |
| Constructor and Description |
|---|
PermissionManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermission(net.risingworld.api.objects.Player player,
java.lang.String permission)
Checks whether the player has this permission
|
void |
onDisable() |
void |
onEnable() |
void |
reloadPermissions()
Reload all Permissions
|
void |
reloadPermissions(long uid)
Reload all Permissions and send the player a message
|
enqueue, executeDelayed, getAllPlugins, getDescription, getGameVersion, getID, getInternals, getMySQLConnection, getName, getPath, getPluginByID, getPluginByName, getServer, getSQLiteConnection, getWorld, getWorldDatabase, onLoad, registerEventListener, sendHttpRequest, sendHttpRequest, triggerEvent, unregisterEventListenerpublic FileManager api
public void onEnable()
onEnable in class net.risingworld.api.Pluginpublic void onDisable()
onDisable in class net.risingworld.api.Pluginpublic boolean hasPermission(net.risingworld.api.objects.Player player,
java.lang.String permission)
throws UserNotFoundException,
GroupNotFoundException
player - - The playerpermission - - The permissionUserNotFoundException - Throws, if the player is not found in the
permission.ymlGroupNotFoundException - Throws, if the group of the player is not
found in the permission.ymlpublic void reloadPermissions()
public void reloadPermissions(long uid)
uid -