Package net.tnemc.plugincore.bukkit.impl
Class BukkitPlayerProvider
java.lang.Object
net.tnemc.menu.bukkit.BukkitPlayer
net.tnemc.plugincore.bukkit.impl.BukkitPlayerProvider
- All Implemented Interfaces:
net.tnemc.menu.core.compatibility.MenuPlayer,PlayerProvider
public class BukkitPlayerProvider
extends net.tnemc.menu.bukkit.BukkitPlayer
implements PlayerProvider
BukkitPlayerProvider
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbiome()Used to get the name of the biome this player is currently in.static BukkitPlayerProviderMethod for retrieving player permissions.intgetExp()Used to get the amount of experience this player has.intUsed to get the amount of experience levels this player has.Used to get the location of this player.getName()Used to get the name of this player.org.bukkit.OfflinePlayerbooleanhasPermission(String permission) Used to determine if this player has the specified permission node.Used to get theUUIDof this player.voidvoidmessage(MessageData messageData) Used to send a message to this command source.voidsetExp(int exp) Used to set the amount of experience this player has.voidsetExpLevel(int level) Used to set the amount of experience levels this player has.world()Used to get the name of the world this player is currently in.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.tnemc.menu.core.compatibility.MenuPlayer
status, viewer
-
Constructor Details
-
BukkitPlayerProvider
-
-
Method Details
-
find
-
identifier
Used to get theUUIDof this player.- Specified by:
identifierin interfacenet.tnemc.menu.core.compatibility.MenuPlayer- Overrides:
identifierin classnet.tnemc.menu.bukkit.BukkitPlayer- Returns:
- The
UUIDof this player.
-
getPlayer
-
getName
Used to get the name of this player.- Specified by:
getNamein interfacePlayerProvider- Returns:
- The name of this player.
-
getLocation
Used to get the location of this player.- Specified by:
getLocationin interfacePlayerProvider- Returns:
- The location of this player.
-
world
Used to get the name of the world this player is currently in.- Specified by:
worldin interfacePlayerProvider- Returns:
- The name of the world.
-
biome
Used to get the name of the biome this player is currently in.- Specified by:
biomein interfacePlayerProvider- Returns:
- The name of the biome.
-
getExp
Used to get the amount of experience this player has.- Specified by:
getExpin interfacePlayerProvider- Returns:
- The amount of levels this player has.
-
setExp
Used to set the amount of experience this player has.- Specified by:
setExpin interfacePlayerProvider- Parameters:
exp- The amount of experience to set for this player.
-
getExpLevel
Used to get the amount of experience levels this player has.- Specified by:
getExpLevelin interfacePlayerProvider- Returns:
- The amount of experience levels this player has.
-
setExpLevel
Used to set the amount of experience levels this player has.- Specified by:
setExpLevelin interfacePlayerProvider- Parameters:
level- The amount of experience levels to set for this player.
-
inventory
- Specified by:
inventoryin interfacenet.tnemc.menu.core.compatibility.MenuPlayer- Specified by:
inventoryin interfacePlayerProvider- Overrides:
inventoryin classnet.tnemc.menu.bukkit.BukkitPlayer
-
getEffectivePermissions
Method for retrieving player permissions.- Specified by:
getEffectivePermissionsin interfacePlayerProvider- Returns:
- A list of permission strings.
-
hasPermission
Used to determine if this player has the specified permission node.- Specified by:
hasPermissionin interfacenet.tnemc.menu.core.compatibility.MenuPlayer- Specified by:
hasPermissionin interfacePlayerProvider- Overrides:
hasPermissionin classnet.tnemc.menu.bukkit.BukkitPlayer- Parameters:
permission- The node to check for.- Returns:
- True if the player has the permission, otherwise false.
-
message
- Specified by:
messagein interfacenet.tnemc.menu.core.compatibility.MenuPlayer- Overrides:
messagein classnet.tnemc.menu.bukkit.BukkitPlayer
-
message
Used to send a message to this command source.- Specified by:
messagein interfacePlayerProvider- Parameters:
messageData- The message data to utilize for this translation.
-