nah, you need to use .equals() or .equalsIgnoreCase()
This commit is contained in:
parent
428c17123d
commit
3ea8bb6539
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ public class Bedsplode implements Listener {
|
|||
public void onSleep(PlayerBedEnterEvent event){
|
||||
Player player = event.getPlayer();
|
||||
player.sendMessage("[ButtonPresents] Nighty night " + player.getName().toLowerCase());
|
||||
if (player.getName().toLowerCase() != "alisolarflare") return;
|
||||
if (!player.getName().toLowerCase().equalsIgnoreCase("alisolarflare")) return;
|
||||
|
||||
player.getWorld().createExplosion(
|
||||
player.getLocation().getBlockX(),
|
||||
|
|
Loading…
Reference in a new issue