From a072361166a0e523fb9e4b53f9d378d99beb48e0 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 7 Feb 2023 15:27:06 +0900 Subject: - new command Signed-off-by: syeyoung --- .../dungeonsguide/mod/commands/CommandDungeonsGuide.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mod/src/main') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java index fed67faf..74846206 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java @@ -76,7 +76,7 @@ public class CommandDungeonsGuide extends CommandBase { "purge", "pbroadcast", "partymax", - "reload" + "unload" }; @Override @@ -129,8 +129,8 @@ public class CommandDungeonsGuide extends CommandBase { partyMaxCommand(args); break; - case "reload": - reloadCommand(); + case "unload": + unloadCommand(); break; default: @@ -143,7 +143,7 @@ public class CommandDungeonsGuide extends CommandBase { ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide §7:: §e/dg pv [ign] §7-§f Profile Viewer")); ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide §7:: §e/dg pvall §7-§f Profile Viewer For all people on party")); ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide §7:: §e/dg purge §7-§f Purge api cache.")); - ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide §7:: §e/dg reload §7-§f Reload Current Version of Dungeons Guide. Auto update versions will not be updated.")); + ChatTransmitter.addToQueue(new ChatComponentText("§eDungeons Guide §7:: §e/dg unload §7-§f Unload Current Version of Dungeons Guide, to load the new version")); break; } } @@ -266,7 +266,7 @@ public class CommandDungeonsGuide extends CommandBase { } } - private void reloadCommand() { - Main.getMain().reloadWithoutStacktraceReference(Main.getMain().getCurrentLoader()); + private void unloadCommand() { + Main.getMain().unloadWithoutStacktraceReference(); } } -- cgit