Package net.tnemc.menu.bukkit
Class BukkitPlayer
java.lang.Object
net.tnemc.menu.bukkit.BukkitPlayer
- All Implemented Interfaces:
MenuPlayer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPlayer(org.bukkit.OfflinePlayer player, org.bukkit.plugin.java.JavaPlugin plugin) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String permission) Used to determine if this player has the specified permission node.Theunique identifierfor this player.ThePlayerInventoryfor this player.voidUsed to send a message to this player.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.tnemc.menu.core.compatibility.MenuPlayer
status, viewer
-
Field Details
-
player
protected org.bukkit.OfflinePlayer player -
plugin
protected final org.bukkit.plugin.java.JavaPlugin plugin
-
-
Constructor Details
-
BukkitPlayer
public BukkitPlayer(org.bukkit.OfflinePlayer player, org.bukkit.plugin.java.JavaPlugin plugin)
-
-
Method Details
-
identifier
Theunique identifierfor this player.- Specified by:
identifierin interfaceMenuPlayer- Returns:
- The
UUIDfor the player.
-
inventory
ThePlayerInventoryfor this player.- Specified by:
inventoryin interfaceMenuPlayer- Returns:
- The
PlayerInventoryfor this player.
-
hasPermission
Used to determine if this player has the specified permission node.- Specified by:
hasPermissionin interfaceMenuPlayer- Parameters:
permission- The node to check for.- Returns:
- True if the player has the permission, otherwise false.
-
message
Used to send a message to this player.- Specified by:
messagein interfaceMenuPlayer- Parameters:
message- The message.
-