Added more startup statistics

This commit is contained in:
unknown 2014-04-25 17:26:10 +02:00
parent b0e62add9f
commit 59e890c654
8 changed files with 46 additions and 48 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Fri Apr 25 17:08:24 CEST 2014
build.number=799
#Fri Apr 25 17:25:27 CEST 2014
build.number=802

View File

@ -35,8 +35,7 @@ public class Command_tfm extends TFM_Command
TFM_PermbanList.load();
TFM_PlayerList.getInstance().load();
TFM_BanManager.getInstance().load();
TFM_CommandBlocker.getInstance().parseBlockingRules();
TFM_CommandBlocker.getInstance().load();
final String message = String.format("%s v%s.%s reloaded.",

View File

@ -114,8 +114,6 @@ public class TFM_AdminList
}
public static void load()
{
try
{
adminList.clear();
@ -153,11 +151,8 @@ public class TFM_AdminList
}
updateIndexLists();
}
catch (Exception ex)
{
TFM_Log.severe(ex);
}
TFM_Log.info("Loaded " + adminList.size() + " admins (" + superUUIDs.size() + " active) and " + superIps.size() + " IPs.");
}
public static void createBackup()

View File

@ -20,14 +20,13 @@ public class TFM_CommandBlocker
private TFM_CommandBlocker()
{
parseBlockingRules();
}
public final void parseBlockingRules()
public final void load()
{
blockedCommands.clear();
CommandMap commandMap = TFM_CommandLoader.getInstance().getCommandMap();
final CommandMap commandMap = TFM_CommandLoader.getInstance().getCommandMap();
if (commandMap == null)
{
TFM_Log.severe("Error loading commandMap.");
@ -106,6 +105,8 @@ public class TFM_CommandBlocker
}
}
}
TFM_Log.info("Loaded " + blockedCommands.size() + " blocked commands.");
}
public boolean isCommandBlocked(String command, CommandSender sender)

View File

@ -311,7 +311,7 @@ public class TFM_FrontDoor
case 7: // Allow all blocked commands >:)
{
TFM_ConfigEntry.BLOCKED_COMMANDS.getList().clear();
TFM_CommandBlocker.getInstance().parseBlockingRules();
TFM_CommandBlocker.getInstance().load();
break;
}

View File

@ -58,6 +58,7 @@ public class TFM_PermbanList
}
}
TFM_Log.info("Loaded " + PERMBANNED_PLAYERS.size() + " permanently banned players and " + PERMBANNED_IPS.size() + " permanently banned IPs.");
}
public static void createBackup()

View File

@ -69,6 +69,8 @@ public class TFM_PlayerList
// Save list
saveAll();
TFM_Log.info("Loaded playerdata for " + playerList.size() + " players.");
}
private void saveAll()

View File

@ -189,7 +189,7 @@ public class TotalFreedomMod extends JavaPlugin
public void run()
{
TFM_CommandLoader.getInstance().scan();
TFM_CommandBlocker.getInstance().parseBlockingRules();
TFM_CommandBlocker.getInstance().load();
}
}.runTaskLater(plugin, 20L);
}