| Constructor and Description |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
abstract Collection<String> |
getGroups(net.md_5.bungee.api.connection.ProxiedPlayer player)
Gets the player groups
|
static Permission |
getPermission()
Gets an instance of this class
|
abstract Collection<String> |
getPermissions(net.md_5.bungee.api.connection.ProxiedPlayer player)
Gets the player permissions
|
abstract String |
getPrimaryGroup(net.md_5.bungee.api.connection.ProxiedPlayer player)
Gets the 1st group of the player If no permission plugin is installed, it will get the first
BungeeCord one.
|
abstract Provider |
getProvider()
Gets the provider
|
static void |
setInstance(Permission instance)
Sets an instance of this class If the instance is already set, this method will throw an
IllegalArgumentException. |
abstract void |
setPrimaryGroup(net.md_5.bungee.api.connection.ProxiedPlayer player,
String group)
Sets the 1st group of the player
|
public static Permission getPermission()
public static void setInstance(Permission instance)
IllegalArgumentException. If the new instance is null, the method again will throw an
IllegalArgumentExceptioninstance - new instancepublic abstract String getPrimaryGroup(net.md_5.bungee.api.connection.ProxiedPlayer player)
player - checked playerpublic abstract void setPrimaryGroup(net.md_5.bungee.api.connection.ProxiedPlayer player,
String group)
player - group set for the playergroup - set groupNullPointerException - if the group isn't found (BungeeCord Specific)public abstract Collection<String> getPermissions(net.md_5.bungee.api.connection.ProxiedPlayer player)
player - checked playerpublic abstract Provider getProvider()
public abstract Collection<String> getGroups(net.md_5.bungee.api.connection.ProxiedPlayer player)
player - groups of the playerCopyright © 2019. All rights reserved.