Package me.neznamy.tab.shared
Class GroupManager
java.lang.Object
me.neznamy.tab.api.TabFeature
me.neznamy.tab.shared.GroupManager
public class GroupManager
extends me.neznamy.tab.api.TabFeature
Permission group manager retrieving groups from permission plugin
-
Field Summary
Fields inherited from class me.neznamy.tab.api.TabFeature
disabledServers, disabledWorlds -
Constructor Summary
ConstructorsConstructorDescriptionGroupManager(PermissionPlugin plugin) Constructs new instance with given permission plugin, loads event listeners and registers group placeholder. -
Method Summary
Modifier and TypeMethodDescriptiondetectPermissionGroup(me.neznamy.tab.api.TabPlayer player) Detects player's permission group using configured method and returns itReturns detected permission pluginbooleanReturnstrueif assigning by permissions is configured,falseif not.Methods inherited from class me.neznamy.tab.api.TabFeature
addDisabledPlayer, addUsedPlaceholders, contains, getFeatureName, getRefreshDisplayName, isDisabled, isDisabledPlayer, load, onCommand, onDisplayObjective, onJoin, onLoginPacket, onObjective, onPacketReceive, onPacketSend, onPlayerInfo, onQuit, onServerChange, onVanishStatusChange, onWorldChange, overridesMethod, refresh, removeDisabledPlayer, unload
-
Constructor Details
-
Method Details
-
detectPermissionGroup
Detects player's permission group using configured method and returns it- Parameters:
player- Player to detect permission group of- Returns:
- Detected permission group
-
isGroupsByPermissions
public boolean isGroupsByPermissions()Returnstrueif assigning by permissions is configured,falseif not.- Returns:
trueif assigning by permissions,falseif not
-
getPlugin
Returns detected permission plugin- Returns:
- detected permission plugin
-