From 9485f82ea9fb850ca9b9fd0f5a9ef5e08dd63703 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 23 Apr 2019 23:46:10 +0100 Subject: [PATCH] Fix signs between 1.13 and 1.14 --- .../plotsquared/bukkit/util/BukkitUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java index 6f7e26e8a..065756932 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java @@ -14,8 +14,6 @@ import org.bukkit.OfflinePlayer; import org.bukkit.World; import org.bukkit.block.*; import org.bukkit.block.data.Directional; -import org.bukkit.block.data.Rotatable; -import org.bukkit.block.data.type.WallSign; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; @@ -342,7 +340,9 @@ import java.util.*; } else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) { facing = BlockFace.SOUTH; } - block.setType(Material.LEGACY_WALL_SIGN, false); + block.setType(Material.valueOf( + PlotSquared.get().IMP.getServerVersion()[1] == 13 ? "WALL_SIGN" : "OAK_WALL_SIGN"), + false); final Directional sign = (Directional) block.getBlockData(); sign.setFacing(facing); block.setBlockData(sign, false);