Class BukkitLastLoginPreUpdateLoginTimestampEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginEvent
-
- com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginPreUpdateLoginTimestampEvent
-
- All Implemented Interfaces:
Cancellable,IPreUpdateTimestamp,LastLoginEvent
public class BukkitLastLoginPreUpdateLoginTimestampEvent extends BukkitLastLoginEvent implements IPreUpdateTimestamp
-
-
Constructor Summary
Constructors Constructor Description BukkitLastLoginPreUpdateLoginTimestampEvent(LastLoginPlayer player, long timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull LastLoginPlayergetPlayer()Get the playerlonggetTimestamp()The timestamp that is gonna to be setbooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelledvoidsetTimestamp(long timestamp)Set a new timestamp-
Methods inherited from class com.alessiodp.lastloginapi.api.events.bukkit.BukkitLastLoginEvent
getApi, getHandlerList, getHandlers, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.lastloginapi.api.events.LastLoginEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BukkitLastLoginPreUpdateLoginTimestampEvent
public BukkitLastLoginPreUpdateLoginTimestampEvent(LastLoginPlayer player, long timestamp)
-
-
Method Detail
-
getPlayer
@NotNull public @NotNull LastLoginPlayer getPlayer()
Description copied from interface:IPreUpdateTimestampGet the player- Specified by:
getPlayerin interfaceIPreUpdateTimestamp- Returns:
- the
LastLoginPlayer
-
getTimestamp
public long getTimestamp()
Description copied from interface:IPreUpdateTimestampThe timestamp that is gonna to be set- Specified by:
getTimestampin interfaceIPreUpdateTimestamp- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(long timestamp)
Description copied from interface:IPreUpdateTimestampSet a new timestamp- Specified by:
setTimestampin interfaceIPreUpdateTimestamp- Parameters:
timestamp- the timestamp to set
-
isCancelled
public boolean isCancelled()
Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)
Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-
-