Forgot something

This commit is contained in:
ZeroEpoch1969 2018-03-24 23:08:50 -07:00
parent 88f89d7e67
commit d5a3742849
No known key found for this signature in database
GPG Key ID: E0AAB104FB9F8FDF

View File

@ -9,19 +9,24 @@ import org.bukkit.entity.Player;
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH) @CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Manually verifies a player", usage = "/<command> <partialname>") @CommandParameters(description = "Manually verifies a player", usage = "/<command> <partialname>")
public class Command_verifyplayer extends FreedomCommand { public class Command_verifyplayer extends FreedomCommand
{
@Override @Override
public boolean run(final CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) { public boolean run(final CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
if (args.length == 0) { {
if (args.length == 0)
{
return false; return false;
} }
final Player player = getPlayer(args[0]); final Player player = getPlayer(args[0]);
if (player == null) { if (player == null)
{
msg(FreedomCommand.PLAYER_NOT_FOUND, ChatColor.RED); msg(FreedomCommand.PLAYER_NOT_FOUND, ChatColor.RED);
return true; return true;
} }
if (!plugin.pv.isPlayerImpostor(player)) { if (!plugin.pv.isPlayerImpostor(player))
{
msg("That player is not an impostor."); msg("That player is not an impostor.");
return true; return true;
} }