Skip to content

Commit

Permalink
UPDATE change default values in PlayerChatListener
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguine6660 committed Dec 18, 2023
1 parent 6180c66 commit c0192d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void onChat(AsyncChatEvent event) {

boolean allowAction = true;

String allow = worldConfig.getString("flags." + GuardFlag.CHATTING.getFlagName(), "false");
String allow = worldConfig.getString("flags." + GuardFlag.CHATTING.getFlagName(), "true");

if (allow.isEmpty() || allow.equalsIgnoreCase("empty")
|| allow.equalsIgnoreCase("false") || allow.equalsIgnoreCase("deny")) {
Expand Down Expand Up @@ -83,7 +83,7 @@ public void onPreCommand(PlayerCommandPreprocessEvent event) {

boolean allowAction = true;

String allow = worldConfig.getString("flags." + GuardFlag.COMMAND_EXECUTE.getFlagName(), "false");
String allow = worldConfig.getString("flags." + GuardFlag.COMMAND_EXECUTE.getFlagName(), "true");

if (allow.isEmpty() || allow.equalsIgnoreCase("empty")
|| allow.equalsIgnoreCase("false") || allow.equalsIgnoreCase("deny")) {
Expand Down

0 comments on commit c0192d8

Please sign in to comment.