public interface NucleusBackService
A subject's last location may not be set. It is not saved across server restarts, and may be discarded at any time the user is not online.
Modifier and Type | Method and Description |
---|---|
Optional<Transform<World>> |
getLastLocation(User user)
Gets the location of the subject before they executed the last warp that was marked as Returnable.
|
boolean |
isLoggingLastLocation(User user)
Gets a value indicating whether the user will have their last location logged.
|
void |
removeLastLocation(User user)
Removes the last location from the subject, so that /back will not work for them.
|
void |
setLastLocation(User user,
Transform<World> location)
Sets the location that the subject will be warped to if they execute /back
|
void |
setLoggingLastLocation(User user,
boolean log)
Sets whether the user will have their last location logged.
|
Optional<Transform<World>> getLastLocation(User user)
void setLastLocation(User user, Transform<World> location)
void removeLastLocation(User user)
user
- The User
boolean isLoggingLastLocation(User user)
user
- The User
true
if it is being logged.