Update File Change

This commit is contained in:
RayzsYT committed 2024-05-14 16:09:36 +02:00
1 parent ffce3c92d4
commit b9aaedc537
1 file changed
+3 -3
@@ -76,7 +76,7 @@ public class CommandProcess {
if(CONFIRMATION.getOrDefault(sender.getUniqueId(), "").equals(confirmationString)) {
Storage.BLOCKED_COMMANDS_LIST.clear();
Storage.save();
Storage.saveStorage();
handleChange();
sender.sendMessage(Storage.BLACKLIST_CLEAR_MESSAGE);
} else {
@@ -199,7 +199,7 @@ public class CommandProcess {
if(!PermissionUtil.hasPermissionWithResponse(sender, "add")) return;
if (!bool) {
Storage.BLOCKED_COMMANDS_LIST.add(sub);
Storage.save();
Storage.saveStorage();
handleChange();
}
@@ -211,7 +211,7 @@ public class CommandProcess {
if(!PermissionUtil.hasPermissionWithResponse(sender, "remove")) return;
if (bool) {
Storage.BLOCKED_COMMANDS_LIST.remove(sub);
Storage.save();
Storage.saveStorage();
handleChange();
}
sender.sendMessage((!bool ? Storage.BLACKLIST_REMOVE_FAIL_MESSAGE : Storage.BLACKLIST_REMOVE_MESSAGE).replace("%command%", sub));