aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-28 00:20:43 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-11-28 00:20:43 +0900
commit2a4d8f550661a510ec4abbeabdc7b6fcb03322a5 (patch)
tree73fdf2e907109f880f567fdcac0b2f59e9ace37e /src/main/java/kr/syeyoung/dungeonsguide/commands
parentf74de0c58aa3be0d0aa17c2a1f8b942ae2a6d5c8 (diff)
downloadSkyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.tar.gz
Skyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.tar.bz2
Skyblock-Dungeons-Guide-2a4d8f550661a510ec4abbeabdc7b6fcb03322a5.zip
DEBUG Command
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/commands/CommandToggleDebug.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandToggleDebug.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandToggleDebug.java
new file mode 100644
index 00000000..6a17fba6
--- /dev/null
+++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandToggleDebug.java
@@ -0,0 +1,29 @@
+package kr.syeyoung.dungeonsguide.commands;
+
+import kr.syeyoung.dungeonsguide.DungeonsGuide;
+import kr.syeyoung.dungeonsguide.dungeon.roomfinder.DungeonRoomInfoRegistry;
+import net.minecraft.command.CommandBase;
+import net.minecraft.command.ICommandSender;
+import net.minecraft.util.ChatComponentText;
+
+public class CommandToggleDebug extends CommandBase {
+ @Override
+ public String getCommandName() {
+ return "debugtoggle";
+ }
+
+ @Override
+ public String getCommandUsage(ICommandSender sender) {
+ return "debugtoggle";
+ }
+
+ @Override
+ public void processCommand(ICommandSender sender, String[] args) {
+ DungeonsGuide.DEBUG = !DungeonsGuide.DEBUG;
+ sender.addChatMessage(new ChatComponentText("Toggled Debug mode to "+DungeonsGuide.DEBUG));
+ }
+ @Override
+ public int getRequiredPermissionLevel() {
+ return 0;
+ }
+}