Skip to content

Commit

Permalink
Allow ConsoleCommandSender to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed May 15, 2019
1 parent 210ce18 commit 016a5fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
/**
* Console Command Sender Class
*/
public final class ConsoleCommandSender implements CommandSender {
private static ConsoleCommandSender instance;
public class ConsoleCommandSender implements CommandSender {
protected static ConsoleCommandSender instance;
private ObjectMap<String> extra = new ObjectMap<String>();

/**
Expand All @@ -22,7 +22,7 @@ public static ConsoleCommandSender get() {
if (instance == null) instance = new ConsoleCommandSender();
return instance;
}
private ConsoleCommandSender() {}
protected ConsoleCommandSender() {}

@Override
public String getName() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ private GalaxiEngine(PluginInfo app) throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
pluginManager.findClasses(engine.get().getClass());
pluginManager.findClasses(this.app.get().getClass());
getPluginManager().findClasses(Launch.class);

if (!((SHOW_DEBUG_MESSAGES.usr().length() > 0 && SHOW_DEBUG_MESSAGES.def()) || (SHOW_DEBUG_MESSAGES.usr().length() <= 0 && SHOW_DEBUG_MESSAGES.get())))
Logger.addStaticFilter((stream, message) -> (stream.getLevel() != LogLevel.DEBUG)?null:false);
Expand Down

0 comments on commit 016a5fa

Please sign in to comment.