From c3f642c65b98bb64c39533850a772a95ee72331b Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Thu, 3 Nov 2016 07:04:02 -0400 Subject: [PATCH] ARLAJGAGAPGEPVECH --- .../buttonminigames/freeforall/commands/SetFFAS.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/alisolarflare/buttonminigames/freeforall/commands/SetFFAS.java b/src/alisolarflare/buttonminigames/freeforall/commands/SetFFAS.java index abde10d..760ba83 100644 --- a/src/alisolarflare/buttonminigames/freeforall/commands/SetFFAS.java +++ b/src/alisolarflare/buttonminigames/freeforall/commands/SetFFAS.java @@ -9,11 +9,9 @@ import alisolarflare.MainPlugin; import alisolarflare.buttonminigames.freeforall.data.SpawnSet; public class SetFFAS implements CommandExecutor{ - private MainPlugin plugin; private SpawnSet spawnSet; - public SetFFAS(MainPlugin plugin, SpawnSet spawnSet){ - this.plugin = plugin; + public SetFFAS(SpawnSet spawnSet){ this.spawnSet = spawnSet; } @SuppressWarnings("deprecation") @@ -24,7 +22,7 @@ public class SetFFAS implements CommandExecutor{ } Player player = (Player) sender; - if(!(player.equals(plugin.getServer().getPlayer("Alisolarflare")))){ + if(!(player.getName().equalsIgnoreCase("Alisolarflare"))){ player.sendMessage("ERROR: You must be Alisolarflare to use this command!"); }