aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-07 15:27:06 +0900
committersyeyoung <cyoung06@naver.com>2023-02-07 15:27:06 +0900
commita072361166a0e523fb9e4b53f9d378d99beb48e0 (patch)
tree36018de766d2adb856eee7363ac301c4332aa86b
parent399f681abc0bc738e01d659f2a6ae73e5fc64f71 (diff)
downloadSkyblock-Dungeons-Guide-a072361166a0e523fb9e4b53f9d378d99beb48e0.tar.gz
Skyblock-Dungeons-Guide-a072361166a0e523fb9e4b53f9d378d99beb48e0.tar.bz2
Skyblock-Dungeons-Guide-a072361166a0e523fb9e4b53f9d378d99beb48e0.zip
- new command
Signed-off-by: syeyoung <cyoung06@naver.com>
-rwxr-xr-xloader/src/main/java/kr/syeyoung/dungeonsguide/launcher/Main.java2
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/commands/CommandDungeonsGuide.java12
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();
}
}