ARLAJGAGAPGEPVECH
This commit is contained in:
parent
1dfef6a08d
commit
c3f642c65b
1 changed files with 2 additions and 4 deletions
|
@ -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!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue