Enable optional logging in ChatLogHandler
Modified the ChatLogHandler to support optional logging by introducing a new argument in the getInstance() method. This argument sets the logging state during instantiation. This facilitates better flexibility when using the ChatLogHandler across different sections of the code base as logging requirements may differ.
This commit is contained in:
@@ -110,7 +110,7 @@ public class VelocityChat {
|
||||
}
|
||||
|
||||
public void loadCommands() {
|
||||
ChatLogHandler instance = ChatLogHandler.getInstance(); //TODO disable logging part
|
||||
ChatLogHandler instance = ChatLogHandler.getInstance(false);
|
||||
new SilentJoinCommand(server);
|
||||
new GlobalAdminChat(server);
|
||||
new Reload(server);
|
||||
|
||||
Reference in New Issue
Block a user