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