mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-03-02 10:31:23 +01:00
⚠️ Add ice block to spawn protection
This commit is contained in:
parent
46dc94ed8a
commit
0a69a8be7c
@ -61,7 +61,9 @@ public class SetSpawnCommand extends SubCommand {
|
||||
.getFileConfiguration().getBoolean("Island.Spawn.Protection")) {
|
||||
if (location.clone().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() == Material.AIR
|
||||
|| location.clone().subtract(0.0D, 1.0D, 0.0D).getBlock()
|
||||
.getType() == Materials.LEGACY_PISTON_MOVING_PIECE.getPostMaterial()) {
|
||||
.getType() == Materials.LEGACY_PISTON_MOVING_PIECE.getPostMaterial()
|
||||
|| location.clone().subtract(0.0D, 1.0D, 0.0D).getBlock()
|
||||
.getType() == Material.ICE) {
|
||||
messageManager.sendMessage(player,
|
||||
configLoad.getString("Command.Island.SetSpawn.Protection.Block.Message"));
|
||||
soundManager.playSound(player, Sounds.ANVIL_LAND.bukkitSound(), 1.0F, 1.0F);
|
||||
|
Loading…
Reference in New Issue
Block a user