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

    Constructors
    Constructor
    Description
    Constructs new instance with given permission plugin, loads event listeners and registers group placeholder.
  • Method Summary

    Modifier and Type
    Method
    Description
    detectPermissionGroup(me.neznamy.tab.api.TabPlayer player)
    Detects player's permission group using configured method and returns it
    Returns detected permission plugin
    boolean
    Returns true if assigning by permissions is configured, false if 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GroupManager

      public GroupManager(PermissionPlugin plugin)
      Constructs new instance with given permission plugin, loads event listeners and registers group placeholder.
      Parameters:
      plugin - Detected permission plugin
  • Method Details

    • detectPermissionGroup

      public String detectPermissionGroup(me.neznamy.tab.api.TabPlayer player)
      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()
      Returns true if assigning by permissions is configured, false if not.
      Returns:
      true if assigning by permissions, false if not
    • getPlugin

      public PermissionPlugin getPlugin()
      Returns detected permission plugin
      Returns:
      detected permission plugin