Class PersistentSession
java.lang.Object
com.zachsthings.libcomponents.config.ConfigurationBase
com.sk89q.commandbook.component.session.PersistentSession
- Direct Known Subclasses:
AdministrativeSession,AFKComponent.AFKSession,FlightComponent.FlightSession,TeleportSession,UserSession
public abstract class PersistentSession
extends com.zachsthings.libcomponents.config.ConfigurationBase
-
Field Summary
Fields Modifier and Type Field Description static longONE_HOURstatic longTHIRTY_MINUTES -
Constructor Summary
Constructors Modifier Constructor Description protectedPersistentSession(long maxTime) -
Method Summary
Modifier and Type Method Description longgetGoneTime()org.bukkit.command.CommandSendergetOwner()java.lang.StringgetSenderName()Deprecated.java.lang.StringgetUniqueName()voidhandleDisconnect()voidhandleReconnect(org.bukkit.command.CommandSender sender)booleanisRecent()
-
Field Details
-
THIRTY_MINUTES
public static final long THIRTY_MINUTES -
ONE_HOUR
public static final long ONE_HOUR
-
-
Constructor Details
-
PersistentSession
protected PersistentSession(long maxTime)
-
-
Method Details
-
getGoneTime
public long getGoneTime() -
isRecent
public boolean isRecent() -
getOwner
public org.bukkit.command.CommandSender getOwner() -
getSenderName
@Deprecated public java.lang.String getSenderName()Deprecated. -
getUniqueName
public java.lang.String getUniqueName() -
handleDisconnect
public void handleDisconnect() -
handleReconnect
public void handleReconnect(org.bukkit.command.CommandSender sender)
-