Skip to content

Commit

Permalink
fix bug with world type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartich0ke committed Sep 11, 2022
1 parent 9bfbb5c commit 29b99c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29b99c4

Please sign in to comment.