some wonky messages

This commit is contained in:
Super_ 2020-07-14 04:10:57 -04:00
parent d7e9f2d759
commit 16c91f9bf0
2 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,8 @@ public class CreateRankSubcommand extends Common implements CommandExecutor
sender.sendMessage(NO_PERMS);
return true;
}
if (args.length < 2)
return false;
Player player = (Player) sender;
Guild guild = Guild.getGuild(player);
if (guild == null)
@ -30,7 +32,7 @@ public class CreateRankSubcommand extends Common implements CommandExecutor
}
if (!guild.getOwner().equals(player.getName()))
{
sender.sendMessage(ChatColor.RED + "You can't change the name of your guild!");
sender.sendMessage(ChatColor.RED + "You can't create ranks for your guild!");
return true;
}
String rank = StringUtils.join(args, " ", 1, args.length);

View file

@ -20,6 +20,8 @@ public class DeleteRankSubcommand extends Common implements CommandExecutor
sender.sendMessage(NO_PERMS);
return true;
}
if (args.length < 2)
return false;
Player player = (Player) sender;
Guild guild = Guild.getGuild(player);
if (guild == null)
@ -29,7 +31,7 @@ public class DeleteRankSubcommand extends Common implements CommandExecutor
}
if (!guild.getOwner().equals(player.getName()))
{
sender.sendMessage(ChatColor.RED + "You can't change the name of your guild!");
sender.sendMessage(ChatColor.RED + "You can't delete ranks from your guild!");
return true;
}
String rank = StringUtils.join(args, " ", 1, args.length);