ARLAJGAGAPGEPVECH

This commit is contained in:
alisolarflare 2016-11-03 07:04:02 -04:00
parent 1dfef6a08d
commit c3f642c65b

View file

@ -9,11 +9,9 @@ import alisolarflare.MainPlugin;
import alisolarflare.buttonminigames.freeforall.data.SpawnSet; import alisolarflare.buttonminigames.freeforall.data.SpawnSet;
public class SetFFAS implements CommandExecutor{ public class SetFFAS implements CommandExecutor{
private MainPlugin plugin;
private SpawnSet spawnSet; private SpawnSet spawnSet;
public SetFFAS(MainPlugin plugin, SpawnSet spawnSet){ public SetFFAS(SpawnSet spawnSet){
this.plugin = plugin;
this.spawnSet = spawnSet; this.spawnSet = spawnSet;
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@ -24,7 +22,7 @@ public class SetFFAS implements CommandExecutor{
} }
Player player = (Player) sender; 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!"); player.sendMessage("ERROR: You must be Alisolarflare to use this command!");
} }