public abstract class AbstractPlayerLocationManager extends Manager
Constructor and Description |
---|
AbstractPlayerLocationManager(TriggerReactorCore plugin) |
Modifier and Type | Method and Description |
---|---|
SimpleLocation |
getCurrentBlockLocation(UUID uuid)
get location of player
|
protected void |
onMove(IPlayerBlockLocationEvent event)
Called when a player moved from one block to another.
|
protected void |
removeCurrentBlockLocation(UUID uuid)
remove the current location of the player.
|
protected void |
setCurrentBlockLocation(UUID uuid,
SimpleLocation sloc)
set current location of the player
|
disable, getManagers, reload, saveAll
public AbstractPlayerLocationManager(TriggerReactorCore plugin)
protected void onMove(IPlayerBlockLocationEvent event)
player
- the player movedfrom
- block fromto
- block topublic SimpleLocation getCurrentBlockLocation(UUID uuid)
uuid
- uuid of playerprotected void setCurrentBlockLocation(UUID uuid, SimpleLocation sloc)
uuid
- the player's uuidsloc
- the location where player is atprotected void removeCurrentBlockLocation(UUID uuid)
uuid
- the player's uuid