aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorDoKM <mcazzyman@gmail.com>2021-08-04 13:05:49 +0200
committerDoKM <mcazzyman@gmail.com>2021-08-04 13:05:49 +0200
commit7de7e1e997014a95c34ba92342eeee06261fcfde (patch)
tree5cd61bf2ce1f61bb2e685548648f3caf031d3499 /src/main
parentee70fe2b905a55edf06ab42e0e4a0fd09d70e984 (diff)
downloadNotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.tar.gz
NotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.tar.bz2
NotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.zip
Add /join master mode support
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
index 7c807cf4..eb40336c 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -653,9 +653,13 @@ public class NotEnoughUpdates {
} else {
if(args.length != 1) {
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.RED+"Example Usage: /join f7 or /join 7"));
+ EnumChatFormatting.RED+"Example Usage: /join f7, /join m6 or /join 7"));
} else {
- String cmd = "/joindungeon catacombs " + args[0].charAt(args[0].length()-1);
+ String cataPrefix = "catacombs";
+ if(args[0].startsWith("m")){
+ cataPrefix = "master_catacombs";
+ }
+ String cmd = "/joindungeon "+cataPrefix+" " + args[0].charAt(args[0].length()-1);
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
EnumChatFormatting.YELLOW+"Running command: "+cmd));
Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(