From 1bcb79840cad2142f54e14979fa1f1747c2c3b04 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Mon, 14 Aug 2023 18:55:19 -0400 Subject: [PATCH] Rename `troubleshoot` to `info` to allow for credits placement --- ...TroubleshootCommand.java => InfoCommand.java} | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) rename src/main/java/emu/grasscutter/command/commands/{TroubleshootCommand.java => InfoCommand.java} (74%) diff --git a/src/main/java/emu/grasscutter/command/commands/TroubleshootCommand.java b/src/main/java/emu/grasscutter/command/commands/InfoCommand.java similarity index 74% rename from src/main/java/emu/grasscutter/command/commands/TroubleshootCommand.java rename to src/main/java/emu/grasscutter/command/commands/InfoCommand.java index 32db9838d..96b53be36 100644 --- a/src/main/java/emu/grasscutter/command/commands/TroubleshootCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/InfoCommand.java @@ -9,10 +9,11 @@ import emu.grasscutter.tools.Tools; import java.util.List; -@Command(label = "troubleshoot", aliases = {"helpme"}, - usage = "/troubleshoot", permission = "grasscutter.command.troubleshoot", - targetRequirement = Command.TargetRequirement.NONE) -public final class TroubleshootCommand implements CommandHandler { +@Command(label = "info", aliases = {"info", "helpme"}, + usage = "/info", targetRequirement = Command.TargetRequirement.NONE) +public final class InfoCommand implements CommandHandler { + // This command can use the 'grasscutter.command.troubleshoot' permission to show sensitive information. + @Override public void execute(Player sender, Player targetPlayer, List args) { // Collect server information. @@ -30,7 +31,12 @@ public final class TroubleshootCommand implements CommandHandler { // TODO: Send to remote server (Grasscutter API) and send dump link. CommandHandler.sendMessage(sender, """ - Troubleshooting/Debug Information + Credits + - Slushy Team (akio, azzu, Areha11Fz, tamilp) + - Yuki (resource minifying & packaging) + - Dimbreath (dumping most resources) + + Server Information Revision: %s Player Count: %d Questing Enabled: %s