fuck intellij

This commit is contained in:
2020-08-15 17:42:46 -05:00
parent e77d92407c
commit 53038ca3b2
185 changed files with 1242 additions and 1453 deletions

View File

@ -26,11 +26,11 @@ public class Command_invis extends FreedomCommand
{
if (args[0].equalsIgnoreCase("clear"))
{
if(!plugin.al.isAdmin(sender))
if(!plugin.sl.isStaff(sender))
return noPerms();
else
{
FUtil.adminAction(sender.getName(), "Clearing all invisibility potion effects from all players", true);
FUtil.staffAction(sender.getName(), "Clearing all invisibility potion effects from all players", true);
clear = true;
}
}
@ -43,10 +43,10 @@ public class Command_invis extends FreedomCommand
for (Player player : server.getOnlinePlayers())
{
if (player.hasPotionEffect(PotionEffectType.INVISIBILITY) && !plugin.al.isVanished(player))
if (player.hasPotionEffect(PotionEffectType.INVISIBILITY) && !plugin.sl.isVanished(player))
{
players.add(player.getName());
if (clear && !plugin.al.isAdmin(player))
if (clear && !plugin.sl.isStaff(player))
{
player.removePotionEffect((PotionEffectType.INVISIBILITY));
clears++;
@ -71,7 +71,7 @@ public class Command_invis extends FreedomCommand
@Override
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.sl.isStaff(sender))
return Arrays.asList("clear");
return Collections.emptyList();