summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-04-13 15:00:55 +0100
committerElgarL <ElgarL@palmergames.com>2012-04-13 15:00:55 +0100
commit2f74510cce37c80341a844763675ec4e2a0d6516 (patch)
treeb00c05a9a9f0e3a0b8627eabccaa0a41923f05bd /EssentialsGroupManager/src
parent08bff3ea5f46865907e08cb75c25360c95e8798e (diff)
downloadEssentials-2f74510cce37c80341a844763675ec4e2a0d6516.tar
Essentials-2f74510cce37c80341a844763675ec4e2a0d6516.tar.gz
Essentials-2f74510cce37c80341a844763675ec4e2a0d6516.tar.lz
Essentials-2f74510cce37c80341a844763675ec4e2a0d6516.tar.xz
Essentials-2f74510cce37c80341a844763675ec4e2a0d6516.zip
Code tidy
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java16
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) {