diff --git a/src/main/java/com/nikolaipatrick/minigamesmanager2/commands/mm_add.java b/src/main/java/com/nikolaipatrick/minigamesmanager2/commands/mm_add.java index cd5871b..d329fc8 100644 --- a/src/main/java/com/nikolaipatrick/minigamesmanager2/commands/mm_add.java +++ b/src/main/java/com/nikolaipatrick/minigamesmanager2/commands/mm_add.java @@ -14,7 +14,7 @@ public class mm_add implements CommandExecutor { public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender.hasPermission("minigamesmanager.add") || sender.isOp()) { if (args[0].equals("world")){ - if(args[1].equals("lobby") || args[1].equals("arena")) { + if(args[2].equals("lobby") || args[2].equals("arena")) { MinigameData.addMinigameWorld(args[1], args[3], args[2]); sender.sendMessage(config.messagePrefix() + ChatColor.GREEN + "World " + ChatColor.YELLOW + args[3] + ChatColor.GREEN + " added as a " + ChatColor.YELLOW + args[2] + ChatColor.GREEN + " to the minigame " + ChatColor.YELLOW + args[1] + ChatColor.GREEN + " successfully!"); return true;