summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinenash <minenash@protonmail.com>2019-01-13 23:16:15 -0500
committerMinenash <minenash@protonmail.com>2019-01-13 23:16:15 -0500
commitc40d8655e214c119e8dbf32f0bbf3dcda3b6d44c (patch)
tree959479e6dd38482db629c6b1c4c6584229a8f78c
parent88427616de25e4731339ad5e3b10832a037419c7 (diff)
Fixed `resetchatformatting` command
-rw-r--r--src/main/java/com/redstoner/modules/chat/Chat.cmd10
-rw-r--r--src/main/java/com/redstoner/modules/chat/Chat.java4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/com/redstoner/modules/chat/Chat.cmd b/src/main/java/com/redstoner/modules/chat/Chat.cmd
index d51d56b..fcd91fc 100644
--- a/src/main/java/com/redstoner/modules/chat/Chat.cmd
+++ b/src/main/java/com/redstoner/modules/chat/Chat.cmd
@@ -89,8 +89,10 @@ command chatonly {
}
}
-command resetchatformating {
- run resetformating;
- help Resets the formatting to defaults.;
- type console;
+command resetchatformatting {
+ [empty] {
+ run reset_formatting;
+ help Resets the formatting to defaults.;
+ type console;
+ }
}
diff --git a/src/main/java/com/redstoner/modules/chat/Chat.java b/src/main/java/com/redstoner/modules/chat/Chat.java
index 9fcae4b..629ae39 100644
--- a/src/main/java/com/redstoner/modules/chat/Chat.java
+++ b/src/main/java/com/redstoner/modules/chat/Chat.java
@@ -62,8 +62,8 @@ public class Chat implements Module, Listener {
DataManager.setConfig("%w-default", defaults.get("ยง7"));
}
- @Command(hook = "resetformating")
- public void resetFormating(CommandSender sender) {
+ @Command(hook = "reset_formatting")
+ public void resetFormatting(CommandSender sender) {
firstLoad();
sender.sendMessage("Chat Formats have been reset to defaults.");
}