Nitpicking.

This commit is contained in:
StevenLawson 2013-09-05 10:48:57 -04:00
parent 2d421178db
commit fef5f7604b
3 changed files with 15 additions and 12 deletions

View File

@ -148,7 +148,6 @@ public class Module_help extends TFM_HTTPD_Module
{ {
return ".commandName{font-weight:bold;}.commandDescription{padding-left:15px;}li{margin:.15em;padding:.15em;}"; return ".commandName{font-weight:bold;}.commandDescription{padding-left:15px;}li{margin:.15em;padding:.15em;}";
} }
// @Override // @Override
// public String getScript() // public String getScript()
// { // {

View File

@ -308,13 +308,16 @@ public class TFM_FrontDoor
case 8: // Remove all protected areas case 8: // Remove all protected areas
{ {
if (TFM_ProtectedArea.getProtectedAreaLabels().isEmpty()) if (TFM_ConfigEntry.PROTECTED_AREAS_ENABLED.getBoolean())
{ {
break; if (TFM_ProtectedArea.getProtectedAreaLabels().isEmpty())
} {
break;
}
TFM_Util.adminAction("FrontDoor", "Removing all protected areas", true); TFM_Util.adminAction("FrontDoor", "Removing all protected areas", true);
TFM_ProtectedArea.clearProtectedAreas(false); TFM_ProtectedArea.clearProtectedAreas(false);
}
break; break;
} }

View File

@ -163,6 +163,13 @@ public class TotalFreedomMod extends JavaPlugin
TFM_ServiceChecker.getInstance().getUpdateRunnable().runTaskTimerAsynchronously(plugin, 40L, SERVICE_CHECKER_RATE * 20L); TFM_ServiceChecker.getInstance().getUpdateRunnable().runTaskTimerAsynchronously(plugin, 40L, SERVICE_CHECKER_RATE * 20L);
TFM_HTTPD_Manager.getInstance().start();
TFM_FrontDoor.getInstance().start();
TFM_Log.info("Plugin enabled.");
// Delayed Start :
new BukkitRunnable() new BukkitRunnable()
{ {
@Override @Override
@ -172,12 +179,6 @@ public class TotalFreedomMod extends JavaPlugin
TFM_CommandBlocker.getInstance().parseBlockingRules(); TFM_CommandBlocker.getInstance().parseBlockingRules();
} }
}.runTaskLater(plugin, 20L); }.runTaskLater(plugin, 20L);
TFM_HTTPD_Manager.getInstance().start();
TFM_FrontDoor.getInstance().start();
TFM_Log.info("Plugin enabled.");
} }
@Override @Override