Updated Using PlotPlayer (markdown)

Jesse Boyd 2015-08-30 17:23:46 +10:00
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.