From a0571b01758a6bb22bb9363357848d2b369b0992 Mon Sep 17 00:00:00 2001 From: Super_ Date: Thu, 12 Dec 2019 18:33:23 -0500 Subject: [PATCH] fixed invis, added cooldown for op and qop --- .../me/totalfreedom/totalfreedommod/command/Command_invis.java | 2 +- .../me/totalfreedom/totalfreedommod/command/Command_op.java | 2 +- .../me/totalfreedom/totalfreedommod/command/Command_qop.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java index 5e125f44..19320e07 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_invis.java @@ -42,7 +42,7 @@ public class Command_invis extends FreedomCommand for (Player player : server.getOnlinePlayers()) { - if (player.hasPotionEffect(PotionEffectType.INVISIBILITY)) + if (player.hasPotionEffect(PotionEffectType.INVISIBILITY) && !Command_vanish.VANISHED.contains(player)) { players.add(player.getName()); if (clear && !plugin.al.isAdmin(player)) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_op.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_op.java index 331d32c7..e18bfd15 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_op.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_op.java @@ -9,7 +9,7 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -@CommandPermissions(level = Rank.OP, source = SourceType.BOTH) +@CommandPermissions(level = Rank.OP, source = SourceType.BOTH, cooldown = 5) @CommandParameters(description = "Makes a player operator", usage = "/ ") public class Command_op extends FreedomCommand { diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_qop.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_qop.java index 61a404b4..d75959a5 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_qop.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_qop.java @@ -9,7 +9,7 @@ import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -@CommandPermissions(level = Rank.OP, source = SourceType.BOTH) +@CommandPermissions(level = Rank.OP, source = SourceType.BOTH, cooldown = 5) @CommandParameters(description = "Quick Op - op someone based on a partial name.", usage = "/ ") public class Command_qop extends FreedomCommand {