public class BukkitLastLoginPreUpdateLogoutTimestampEvent extends BukkitLastLoginEvent implements IPreUpdateTimestamp
Constructor and Description |
---|
BukkitLastLoginPreUpdateLogoutTimestampEvent(LastLoginPlayer player,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
@NotNull LastLoginPlayer |
getPlayer()
Get the player
|
long |
getTimestamp()
The timestamp that is gonna to be set
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
void |
setTimestamp(long timestamp)
Set a new timestamp
|
getApi, getHandlerList, getHandlers, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitLastLoginPreUpdateLogoutTimestampEvent(LastLoginPlayer player, long timestamp)
@NotNull public @NotNull LastLoginPlayer getPlayer()
IPreUpdateTimestamp
getPlayer
in interface IPreUpdateTimestamp
LastLoginPlayer
public long getTimestamp()
IPreUpdateTimestamp
getTimestamp
in interface IPreUpdateTimestamp
public void setTimestamp(long timestamp)
IPreUpdateTimestamp
setTimestamp
in interface IPreUpdateTimestamp
timestamp
- the timestamp to setpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.