From 31f1d912547c5d74891ab33536008103bd908442 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 26 Sep 2020 12:42:51 +0200 Subject: [PATCH] Remove PermissionCheck for Spectate Command --- .../misslewars/commands/CommandSpectate.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/de/steamwar/misslewars/commands/CommandSpectate.java b/src/de/steamwar/misslewars/commands/CommandSpectate.java index acdbdc4..ded0a44 100644 --- a/src/de/steamwar/misslewars/commands/CommandSpectate.java +++ b/src/de/steamwar/misslewars/commands/CommandSpectate.java @@ -21,7 +21,6 @@ package de.steamwar.misslewars.commands; import de.steamwar.misslewars.MWTeam; import de.steamwar.misslewars.MissileWars; -import de.steamwar.misslewars.items.Missile; import org.bukkit.GameMode; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; @@ -30,21 +29,10 @@ import org.bukkit.entity.Player; public class CommandSpectate implements CommandExecutor { - public boolean hasPermissions(Player p) { - if (p.hasPermission("bungeecore.group.admin")) return true; - if (p.hasPermission("bungeecore.group.developer")) return true; - if (p.hasPermission("bungeecore.group.moderator")) return true; - if (p.hasPermission("bungeecore.group.supporter")) return true; - if (p.hasPermission("bungeecore.group.builder")) return true; - if (p.hasPermission("bungeecore.group.youtuber")) return true; - return false; - } - @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(!(sender instanceof Player)) return false; Player player = (Player) sender; - if (!hasPermissions(player)) return false; MWTeam mwTeam = MissileWars.getTeam(player); if (mwTeam == null) return false;