mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 20:46:41 +00:00
Some updates
- Added Reddit flair sync - Removed magical saddle because the stacking potato does the same thing - Some internal improvements - Fixed bug where if a service throws an error while starting or stopping it breaks the entire plugin
This commit is contained in:
@ -65,7 +65,6 @@ public class CommandLoader extends FreedomService
|
||||
{
|
||||
try
|
||||
{
|
||||
FLog.debug("Loading command class " + commandClass.getSimpleName());
|
||||
add(commandClass.newInstance());
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException | ExceptionInInitializerError ex)
|
||||
@ -73,10 +72,7 @@ public class CommandLoader extends FreedomService
|
||||
FLog.warning("Failed to register command: /" + commandClass.getSimpleName().replace("Command_" , ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getCommandAmount()
|
||||
{
|
||||
return commands.size();
|
||||
FLog.info("Loaded " + commands.size() + " commands");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user