diff options
author | ElgarL <ElgarL@palmergames.com> | 2012-04-13 15:00:55 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2012-04-13 15:00:55 +0100 |
commit | 1170297ce90850ea2e5aff715282ebcd5cf20ace (patch) | |
tree | 3c61e563e5acb8e32a895b30a306c59074576d67 /EssentialsGroupManager | |
parent | b8b14900e54d24b87fc42ace82e410bd3da7e2bf (diff) | |
download | Essentials-1170297ce90850ea2e5aff715282ebcd5cf20ace.tar Essentials-1170297ce90850ea2e5aff715282ebcd5cf20ace.tar.gz Essentials-1170297ce90850ea2e5aff715282ebcd5cf20ace.tar.lz Essentials-1170297ce90850ea2e5aff715282ebcd5cf20ace.tar.xz Essentials-1170297ce90850ea2e5aff715282ebcd5cf20ace.zip |
Code tidy
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index c9c8fcbd5..747056c04 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -50,7 +50,6 @@ import org.bukkit.plugin.java.JavaPlugin; */ public class GroupManager extends JavaPlugin { - // private File configFile; private File backupFolder; private Runnable commiter; private ScheduledThreadPoolExecutor scheduler; @@ -88,15 +87,15 @@ public class GroupManager extends JavaPlugin { public static final Logger logger = Logger.getLogger(GroupManager.class.getName()); // PERMISSIONS FOR COMMAND BEING LOADED - OverloadedWorldHolder dataHolder = null; - AnjoPermissionsHandler permissionHandler = null; + private OverloadedWorldHolder dataHolder = null; + private AnjoPermissionsHandler permissionHandler = null; @Override public void onDisable() { setLoaded(false); - // Un-register this service. + // Unregister this service. this.getServer().getServicesManager().unregister(this.worldsHolder); disableScheduler(); // Shutdown before we save, so it doesn't interfere. @@ -123,7 +122,7 @@ public class GroupManager extends JavaPlugin { GroupManager.logger.removeHandler(ch); } - // @Override + @Override public void onEnable() { try { @@ -159,9 +158,8 @@ public class GroupManager extends JavaPlugin { enableScheduler(); /* - * Schedule a Bukiit Permissions update for 1 tick later. All - * plugins - * will be loaded by then + * Schedule a Bukkit Permissions update for 1 tick later. + * All plugins will be loaded by then */ if (getServer().getScheduler().scheduleSyncDelayedTask(this, new BukkitPermsUpdateTask(), 1) == -1) { @@ -243,7 +241,6 @@ public class GroupManager extends JavaPlugin { private void prepareFileFields() { - // configFile = new File(this.getDataFolder(), "config.yml"); backupFolder = new File(this.getDataFolder(), "backup"); if (!backupFolder.exists()) { getBackupFolder().mkdirs(); @@ -364,7 +361,6 @@ public class GroupManager extends JavaPlugin { * @param cmd * @param args */ - //@SuppressWarnings({ "deprecation" }) @Override public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { |