Class GroupManagerSource
java.lang.Object
com.palmergames.bukkit.towny.permissions.TownyPermissionSource
com.palmergames.bukkit.towny.permissions.GroupManagerSource
- Author:
- ElgarL
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.permissions.TownyPermissionSource
groupManager, plugin, settings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getGroupPermissionIntNode
(String playerName, String node) Gets a Group Permission's Integer NodegetPlayerGroup
(org.bukkit.entity.Player player) Returns the players Group name.int
getPlayerPermissionIntNode
(String playerName, String node) getPlayerPermissionStringNode
(String playerName, String node) getPrefixSuffix
(Resident resident, String node) getPermissionNode returns the specified prefix/suffix nodes from GroupManagerMethods inherited from class com.palmergames.bukkit.towny.permissions.TownyPermissionSource
getEffectivePermIntNode, hasAllTownOverride, hasOwnTownOverride, hasTownOwnedOverride, hasWildOverride, isTownyAdmin, testPermission, testPermissionOrThrow, testPermissionOrThrow, unclaimedZoneAction
-
Constructor Details
-
GroupManagerSource
-
-
Method Details
-
getPrefixSuffix
getPermissionNode returns the specified prefix/suffix nodes from GroupManager- Specified by:
getPrefixSuffix
in classTownyPermissionSource
- Parameters:
resident
- - Resident to check fornode
- - Node to check- Returns:
- String of the Prefix or Suffix.
-
getGroupPermissionIntNode
Gets a Group Permission's Integer Node- Specified by:
getGroupPermissionIntNode
in classTownyPermissionSource
- Parameters:
playerName
- - Player Name to check againstnode
- - Node to check against- Returns:
- -1 = can't find
-
getPlayerPermissionIntNode
- Specified by:
getPlayerPermissionIntNode
in classTownyPermissionSource
-
getPlayerPermissionStringNode
- Specified by:
getPlayerPermissionStringNode
in classTownyPermissionSource
- Parameters:
playerName
- - Player's Name to check againstnode
- - Node to check- Returns:
- empty = can't find
-
getPlayerGroup
Returns the players Group name.- Specified by:
getPlayerGroup
in classTownyPermissionSource
- Parameters:
player
- - Player- Returns:
- name of players group
-