mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Forgot something
This commit is contained in:
parent
88f89d7e67
commit
d5a3742849
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user