Class PaperPlayerProvider

java.lang.Object
net.tnemc.menu.paper.PaperPlayer
net.tnemc.plugincore.paper.impl.PaperPlayerProvider
All Implemented Interfaces:
net.tnemc.menu.core.compatibility.MenuPlayer, PlayerProvider

public class PaperPlayerProvider extends net.tnemc.menu.paper.PaperPlayer implements PlayerProvider
BukkitPlayerProvider
Since:
0.1.2.0
Author:
creatorfromhell
  • Constructor Details

  • Method Details

    • identifier

      public UUID identifier()
      Used to get the UUID of this player.
      Specified by:
      identifier in interface net.tnemc.menu.core.compatibility.MenuPlayer
      Overrides:
      identifier in class net.tnemc.menu.paper.PaperPlayer
      Returns:
      The UUID of this player.
    • getPlayer

      public org.bukkit.OfflinePlayer getPlayer()
    • getName

      public String getName()
      Used to get the name of this player.
      Specified by:
      getName in interface PlayerProvider
      Returns:
      The name of this player.
    • getLocation

      Used to get the location of this player.
      Specified by:
      getLocation in interface PlayerProvider
      Returns:
      The location of this player.
    • world

      public String world()
      Used to get the name of the world this player is currently in.
      Specified by:
      world in interface PlayerProvider
      Returns:
      The name of the world.
    • biome

      public String biome()
      Used to get the name of the biome this player is currently in.
      Specified by:
      biome in interface PlayerProvider
      Returns:
      The name of the biome.
    • getExp

      public int getExp()
      Used to get the amount of experience this player has.
      Specified by:
      getExp in interface PlayerProvider
      Returns:
      The amount of levels this player has.
    • setExp

      public void setExp(int exp)
      Used to set the amount of experience this player has.
      Specified by:
      setExp in interface PlayerProvider
      Parameters:
      exp - The amount of experience to set for this player.
    • getExpLevel

      public int getExpLevel()
      Used to get the amount of experience levels this player has.
      Specified by:
      getExpLevel in interface PlayerProvider
      Returns:
      The amount of experience levels this player has.
    • setExpLevel

      public void setExpLevel(int level)
      Used to set the amount of experience levels this player has.
      Specified by:
      setExpLevel in interface PlayerProvider
      Parameters:
      level - The amount of experience levels to set for this player.
    • inventory

      Specified by:
      inventory in interface net.tnemc.menu.core.compatibility.MenuPlayer
      Specified by:
      inventory in interface PlayerProvider
      Overrides:
      inventory in class net.tnemc.menu.paper.PaperPlayer
    • getEffectivePermissions

      Method for retrieving player permissions.
      Specified by:
      getEffectivePermissions in interface PlayerProvider
      Returns:
      A list of permission strings.
    • hasPermission

      public boolean hasPermission(String permission)
      Used to determine if this player has the specified permission node.
      Specified by:
      hasPermission in interface net.tnemc.menu.core.compatibility.MenuPlayer
      Specified by:
      hasPermission in interface PlayerProvider
      Overrides:
      hasPermission in class net.tnemc.menu.paper.PaperPlayer
      Parameters:
      permission - The node to check for.
      Returns:
      True if the player has the permission, otherwise false.
    • message

      public void message(String message)
      Specified by:
      message in interface net.tnemc.menu.core.compatibility.MenuPlayer
      Overrides:
      message in class net.tnemc.menu.paper.PaperPlayer
    • message

      public void message(MessageData messageData)
      Used to send a message to this command source.
      Specified by:
      message in interface PlayerProvider
      Parameters:
      messageData - The message data to utilize for this translation.
    • find

      public static PaperPlayerProvider find(String identifier)