public class PlayerManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Cartographer |
plugin |
protected java.io.File |
saveDirectory |
protected java.util.Map<java.util.UUID,MapViewer> |
viewers |
Constructor and Description |
---|
PlayerManager(Cartographer plugin,
java.io.File saveDirectory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocale(java.util.UUID uuid) |
MapViewer |
getViewerFor(java.util.UUID uuid)
Get the
MapViewer for the specified UUID. |
protected MapViewer |
load(java.util.UUID uuid) |
void |
setLocale(java.util.UUID uuid,
java.lang.String locale) |
void |
unload(java.util.UUID uuid) |
protected Cartographer plugin
protected java.io.File saveDirectory
protected java.util.Map<java.util.UUID,MapViewer> viewers
public PlayerManager(Cartographer plugin, java.io.File saveDirectory)
public MapViewer getViewerFor(java.util.UUID uuid)
MapViewer
for the specified UUID.uuid
- The UUID of a player, cannot be null.public java.lang.String getLocale(java.util.UUID uuid)
public void setLocale(java.util.UUID uuid, java.lang.String locale)
protected MapViewer load(java.util.UUID uuid)
public void unload(java.util.UUID uuid)