mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 11:45:19 +01:00
Updated Using PlotPlayer (markdown)
parent
f9c0ff1895
commit
02da8466f1
@ -3,10 +3,14 @@ PlotPlayer.java is the class PlotSquared uses to represent a player on the serve
|
||||
https://github.com/IntellectualSites/PlotSquared/blob/master/src/main/java/com/intellectualcrafters/plot/object/PlotPlayer.java
|
||||
|
||||
### Getting the PlotPlayer from org.bukkit.entity.Player:
|
||||
`BukkitUtil.getPlayer(Player player)`
|
||||
`BukkitUtil.getPlayer(Player player)`
|
||||
or
|
||||
`PlotPlayer.wrap(Player player)`
|
||||
|
||||
### Getting the PlotPlayer from org.bukkit.OfflinePlayer:
|
||||
`BukkitUtil.getPlayer(OfflinePlayer offline)`
|
||||
or
|
||||
`PlotPlayer.wrap(OfflinePlayer player)`
|
||||
You may cast this to `BukkitPlayer` if you need to access the original Player object again
|
||||
|
||||
Note: Some functions may not work properly with an offline player, especially if they have never joined before.
|
||||
|
Loading…
Reference in New Issue
Block a user