fix stuff and add more functionality (definitely) (hi again)

This commit is contained in:
rrryfu
2023-09-25 23:44:12 +08:00
parent 628bfc397e
commit fe402f7dde
8 changed files with 114 additions and 51 deletions
@@ -12,7 +12,7 @@ import java.io.IOException;
public class SetLoggingModeCommand implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (args[0].isBlank()) {
sender.sendMessage("Please provide a boolean and make sure you only provided one argument. (true/false)");
sender.sendMessage("Please only provide true or false.");
return false;
} else {
if (args[0].equals("true") || args[0].equals("false")) {
@@ -22,7 +22,7 @@ public class SetLoggingModeCommand implements CommandExecutor {
writer.close();
System.out.println("Wrote to config, closing writer...");
sender.sendMessage(ChatColor.RED + "" + ChatColor.ITALIC + "Changes will only apply once the server has restarted.");
sender.sendMessage(ChatColor.RED + "" + ChatColor.ITALIC + "Please restart the server manually.");
sender.sendMessage(ChatColor.RED + "" + ChatColor.ITALIC + "Restart your server if you would like to apply the changes.");
} catch (IOException e) {
throw new RuntimeException(e);
}