Class SpongePlayer

java.lang.Object
net.tnemc.menu.sponge8.SpongePlayer
All Implemented Interfaces:
MenuPlayer

public class SpongePlayer extends Object implements MenuPlayer
  • 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

      public UUID identifier()
      The unique identifier for this player.
      Specified by:
      identifier in interface MenuPlayer
      Returns:
      The UUID for the player.
    • inventory

      public SpongeInventory inventory()
      The PlayerInventory for this player.
      Specified by:
      inventory in interface MenuPlayer
      Returns:
      The PlayerInventory for this player.
    • hasPermission

      public boolean hasPermission(String permission)
      Used to determine if this player has the specified permission node.
      Specified by:
      hasPermission in interface MenuPlayer
      Parameters:
      permission - The node to check for.
      Returns:
      True if the player has the permission, otherwise false.
    • message

      public void message(String message)
      Used to send a message to this player.
      Specified by:
      message in interface MenuPlayer
      Parameters:
      message - The message.