mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
some wonky messages
This commit is contained in:
parent
d7e9f2d759
commit
16c91f9bf0
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue