mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-12-30 13:27:37 +00:00
bru
This commit is contained in:
parent
894feaf1dc
commit
668ccda5cd
@ -26,18 +26,15 @@ public class Command_invis extends FreedomCommand
|
||||
if (args[0].equalsIgnoreCase("clear"))
|
||||
{
|
||||
if(!plugin.al.isAdmin(sender))
|
||||
{
|
||||
return noPerms();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
FUtil.adminAction(sender.getName(), "Clearing all invisibility potion effects from all players", true);
|
||||
clear = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
List<String> players = new ArrayList<String>();
|
||||
@ -61,14 +58,12 @@ public class Command_invis extends FreedomCommand
|
||||
msg("There are no invisible players");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (clear)
|
||||
{
|
||||
msg("Cleared " + clears + " players");
|
||||
}
|
||||
else
|
||||
{
|
||||
msg("Invisible players (" + players.size() + "): " + StringUtils.join(players, ", "));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -76,10 +71,8 @@ public class Command_invis extends FreedomCommand
|
||||
public List<String> getTabCompleteOptions(CommandSender sender, Command command, String alias, String[] args)
|
||||
{
|
||||
if (args.length == 1 && plugin.al.isAdmin(sender))
|
||||
{
|
||||
return Arrays.asList("clear");
|
||||
}
|
||||
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user