Merge pull request #15 from alisolarflare/patch-1

Send a message to Ali about Bed Material Data.
This commit is contained in:
alisolarflare 2020-08-22 20:18:13 -04:00 committed by GitHub
commit a4c9de6896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,7 @@ public class Bedsplode implements Listener {
Player player = event.getPlayer();
player.sendMessage("[ButtonPresents] Nighty night " + player.getName().toLowerCase());
if (!player.getName().toLowerCase().equalsIgnoreCase("alisolarflare")) return;
player.sendMessage("Your Bed's Material is: " + event.getBed().getBlockData().getMaterial().toString());
player.getWorld().createExplosion(
player.getLocation().getBlockX(),