From 92523a25644079fc63d65db47cf37ab04c660268 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Thu, 19 Apr 2012 21:46:18 -0700 Subject: [PATCH] Set the expiration time to the current time plus the expriation grace by default --- src/main/java/com/sk89q/worldedit/LocalSession.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/LocalSession.java b/src/main/java/com/sk89q/worldedit/LocalSession.java index 0c5696b8e..0553ab927 100644 --- a/src/main/java/com/sk89q/worldedit/LocalSession.java +++ b/src/main/java/com/sk89q/worldedit/LocalSession.java @@ -55,7 +55,7 @@ public class LocalSession { private LocalConfiguration config; - private long expirationTime = 0; + private long expirationTime = System.currentTimeMillis() + EXPIRATION_GRACE; private RegionSelector selector = new CuboidRegionSelector(); private boolean placeAtPos1 = false; private LinkedList history = new LinkedList(); @@ -584,7 +584,7 @@ public class LocalSession { } } - + public void describeCUI(LocalPlayer player) { if (!hasCUISupport) { return; @@ -622,8 +622,8 @@ public class LocalSession { /** * Gets the client's CUI protocol version - * - * @return + * + * @return */ public int getCUIVersion() { return cuiVersion; @@ -631,8 +631,8 @@ public class LocalSession { /** * Sets the client's CUI protocol version - * - * @param CUIVersion + * + * @param CUIVersion */ public void setCUIVersion(int CUIVersion) { this.cuiVersion = CUIVersion;