From 45f81a177b7a70fe90b5a498d3dcc01f7a3959e4 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 18 Jul 2014 11:46:33 -0700 Subject: [PATCH] Clean up SessionTimer and make it package local. --- .../java/com/sk89q/worldedit/bukkit/SessionTimer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bukkit/java/com/sk89q/worldedit/bukkit/SessionTimer.java b/src/bukkit/java/com/sk89q/worldedit/bukkit/SessionTimer.java index f49785a15..bf0e76da6 100644 --- a/src/bukkit/java/com/sk89q/worldedit/bukkit/SessionTimer.java +++ b/src/bukkit/java/com/sk89q/worldedit/bukkit/SessionTimer.java @@ -26,15 +26,13 @@ import com.sk89q.worldedit.WorldEdit; /** * Used to remove expired sessions in Bukkit. - * - * @author sk89q */ -public class SessionTimer implements Runnable { +class SessionTimer implements Runnable { private WorldEdit worldEdit; private SessionCheck checker; - public SessionTimer(WorldEdit worldEdit, final Server server) { + SessionTimer(WorldEdit worldEdit, final Server server) { this.worldEdit = worldEdit; this.checker = new SessionCheck() { public boolean isOnlinePlayer(String name) { @@ -44,6 +42,7 @@ public class SessionTimer implements Runnable { }; } + @Override public void run() { worldEdit.flushExpiredSessions(checker); }