diff options
-rwxr-xr-x | loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java | 2 | ||||
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java index 56a87d60..fb6acadf 100755 --- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java +++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java @@ -214,7 +214,7 @@ public class Main public void reloadWithoutStacktraceReference(IDGLoader newLoader) { reqLoader = newLoader; } - public void unloadWithoutStacktraceReference(IDGLoader newLoader) { + public void unloadWithoutStacktraceReference() { unload = true; } @SubscribeEvent 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(); } } |