Package net.tnemc.menu.sponge8
Class SpongePlayer
java.lang.Object
net.tnemc.menu.sponge8.SpongePlayer
- All Implemented Interfaces:
MenuPlayer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSpongePlayer
(org.spongepowered.api.entity.living.player.User user, org.spongepowered.plugin.PluginContainer container) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermission
(String permission) Used to determine if this player has the specified permission node.Theunique identifier
for this player.ThePlayerInventory
for this player.void
Used to send a message to this player.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.tnemc.menu.core.compatibility.MenuPlayer
status, viewer
-
Field Details
-
user
protected final org.spongepowered.api.entity.living.player.User user -
container
protected final org.spongepowered.plugin.PluginContainer container
-
-
Constructor Details
-
SpongePlayer
public SpongePlayer(org.spongepowered.api.entity.living.player.User user, org.spongepowered.plugin.PluginContainer container)
-
-
Method Details
-
identifier
Theunique identifier
for this player.- Specified by:
identifier
in interfaceMenuPlayer
- Returns:
- The
UUID
for the player.
-
inventory
ThePlayerInventory
for this player.- Specified by:
inventory
in interfaceMenuPlayer
- Returns:
- The
PlayerInventory
for this player.
-
hasPermission
Used to determine if this player has the specified permission node.- Specified by:
hasPermission
in 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:
message
in interfaceMenuPlayer
- Parameters:
message
- The message.
-