mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 20:46:41 +00:00
Admins are now known as staff
To other developers: If you find places where staff are refered to as only admins pls fix it for me.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user