public class BukkitPlayer extends LocalPlayer
| Constructor and Description |
|---|
BukkitPlayer(WorldGuardPlugin plugin,
org.bukkit.entity.Player player) |
| Modifier and Type | Method and Description |
|---|---|
void |
ban(String msg)
Ban this player.
|
String[] |
getGroups()
Get this player's list of groups.
|
String |
getName()
Get this player's name.
|
org.bukkit.entity.Player |
getPlayer() |
com.sk89q.worldedit.Vector |
getPosition()
Get this player's position.
|
UUID |
getUniqueId()
Get this player's unique ID.
|
boolean |
hasGroup(String group)
Returns true if this player is inside a group.
|
boolean |
hasPermission(String perm)
Returns whether this player has permission.
|
void |
kick(String msg)
Kick this player.
|
void |
printRaw(String msg)
Send this player a message.
|
equals, getAssociation, hashCodepublic BukkitPlayer(WorldGuardPlugin plugin, org.bukkit.entity.Player player)
public String getName()
LocalPlayergetName in class LocalPlayerpublic UUID getUniqueId()
LocalPlayergetUniqueId in class LocalPlayerpublic boolean hasGroup(String group)
LocalPlayerhasGroup in class LocalPlayergroup - The group to checkgrouppublic com.sk89q.worldedit.Vector getPosition()
LocalPlayergetPosition in class LocalPlayerpublic void kick(String msg)
LocalPlayerkick in class LocalPlayermsg - The message to kick the player withpublic void ban(String msg)
LocalPlayerban in class LocalPlayermsg - The message to ban the player withpublic String[] getGroups()
LocalPlayergetGroups in class LocalPlayerpublic void printRaw(String msg)
LocalPlayerprintRaw in class LocalPlayermsg - The message to send to the playerpublic boolean hasPermission(String perm)
LocalPlayerhasPermission in class LocalPlayerperm - The permission to checkpermpublic org.bukkit.entity.Player getPlayer()
Copyright © 2015. All Rights Reserved.