HomeJavaModsPlayerAPI | Better Player
PlayerAPI | Better Player
PlayerAPI
Use the PlayerAPI to get a lot of new methods for the player.
Did you ever want to have a method for change the name of
a player? - maybe the PlayerAPI can help you.
(A help for people who started working with the Spigot API)

Spoiler: CustomPlayer - Class
CustomPlayer player = new CustomPlayer(String);
CustomPlayer player = new CustomPlayer(UUID);

isOnline()
getName() | return the name of the player
getUUID | return the UUID of the player
getPing() | return the ping of the player
sendActionbar(String) | send a Message over the Hotbar
hasPermission(String)
getIp() | return the Ip of the player
addPermission(String) | add a permission to a player
removePermission(String) | remove a permission from a player
setName(String) | set a new name for the player (over the head, ...)
setTabListName(String) | set a new name on the TabList for the Player
setSkin(String) | set a new skin for the player
respawn() | auto respawn the player if he is dead
fakeRespawn() | reload all chunks for the player (use e.g. to reload the skin for him self)
setCustomName(String) | set a new CustomName
getCustomName() | return the Custom name of the player
isSwimming() | return if the player is swimming
(also a lot of methods from the normal player class)

Player() | define the CustomPlayer to a Player
CraftPlayer() | define the CustomPlayer to a CraftPlayer
EntityPlayer() | define the CustomPlayer to a EntityPlayer

Spoiler: PlayerUUID - Get the Real Name/UUID of a player
PlayerUUID.getUUID(String) | get the real uuid of a player
PlayerUUID.getName(UUID) | get the real name of a player

You need help?
[email protected]



Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PlayerAPI | Better Player is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 579 times (via Spigot). Download it and open it directly in the game.

Explore more