Class NullPermSource
java.lang.Object
com.palmergames.bukkit.towny.permissions.TownyPermissionSource
com.palmergames.bukkit.towny.permissions.NullPermSource
-
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) getPlayerGroup
(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) Methods inherited from class com.palmergames.bukkit.towny.permissions.TownyPermissionSource
getEffectivePermIntNode, hasAllTownOverride, hasOwnTownOverride, hasTownOwnedOverride, hasWildOverride, isTownyAdmin, testPermission, testPermissionOrThrow, testPermissionOrThrow, unclaimedZoneAction
-
Constructor Details
-
NullPermSource
-
-
Method Details
-
getPrefixSuffix
- Specified by:
getPrefixSuffix
in classTownyPermissionSource
-
getGroupPermissionIntNode
- Specified by:
getGroupPermissionIntNode
in classTownyPermissionSource
- Parameters:
playerName
- - Player's Namenode
- - Node to check (String)- Returns:
- -1 = can't find
-
getPlayerPermissionIntNode
- Specified by:
getPlayerPermissionIntNode
in classTownyPermissionSource
-
getPlayerPermissionStringNode
- Specified by:
getPlayerPermissionStringNode
in classTownyPermissionSource
- Parameters:
playerName
- - Player's Namenode
- - Node to check (String)- Returns:
- empty = can't find
-
getPlayerGroup
Returns the players Group name.- Specified by:
getPlayerGroup
in classTownyPermissionSource
- Parameters:
player
- - Player- Returns:
- empty as we are using no permissions
-