public class PlayerCacheUtil
extends java.lang.Object
| Constructor and Description |
|---|
PlayerCacheUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheBlockErrMsg(org.bukkit.entity.Player player,
java.lang.String msg)
Update the cached BlockErrMsg for this player.
|
static PlayerCache.TownBlockStatus |
cacheStatus(org.bukkit.entity.Player player,
WorldCoord worldCoord,
PlayerCache.TownBlockStatus townBlockStatus)
Update and return back the townBlockStatus for the player at this
worldCoord.
|
static boolean |
getCachePermission(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.Integer blockId,
byte data,
TownyPermission.ActionType action)
Returns player cached permission for BUILD, DESTROY, SWITCH or ITEM_USE
at this location for the specified item id.
|
static boolean |
getCachePermission(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.Integer blockId,
TownyPermission.ActionType action)
Deprecated.
|
static PlayerCache.TownBlockStatus |
getTownBlockStatus(org.bukkit.entity.Player player,
WorldCoord worldCoord)
Fetch the TownBlockStatus type for this player at this WorldCoord.
|
static void |
initialize(Towny plugin) |
public static void initialize(Towny plugin)
@Deprecated
public static boolean getCachePermission(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.Integer blockId,
TownyPermission.ActionType action)
public static boolean getCachePermission(org.bukkit.entity.Player player,
org.bukkit.Location location,
java.lang.Integer blockId,
byte data,
TownyPermission.ActionType action)
player - location - blockId - data - action - public static PlayerCache.TownBlockStatus cacheStatus(org.bukkit.entity.Player player, WorldCoord worldCoord, PlayerCache.TownBlockStatus townBlockStatus)
player - worldCoord - townBlockStatus - public static void cacheBlockErrMsg(org.bukkit.entity.Player player,
java.lang.String msg)
player - msg - public static PlayerCache.TownBlockStatus getTownBlockStatus(org.bukkit.entity.Player player, WorldCoord worldCoord)
player - worldCoord -