diff options
author | DoKM <mcazzyman@gmail.com> | 2021-08-04 13:05:49 +0200 |
---|---|---|
committer | DoKM <mcazzyman@gmail.com> | 2021-08-04 13:05:49 +0200 |
commit | 7de7e1e997014a95c34ba92342eeee06261fcfde (patch) | |
tree | 5cd61bf2ce1f61bb2e685548648f3caf031d3499 /src | |
parent | ee70fe2b905a55edf06ab42e0e4a0fd09d70e984 (diff) | |
download | NotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.tar.gz NotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.tar.bz2 NotEnoughUpdates-7de7e1e997014a95c34ba92342eeee06261fcfde.zip |
Add /join master mode support
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 8 |
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( |