Updates depreciated sign API calls

This commit is contained in:
2023-06-07 18:35:22 +02:00
parent 22f4cb78f6
commit 1c06cf2188
5 changed files with 11 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import net.knarcraft.knarlib.util.ColorHelper;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.DyeColor;
import org.bukkit.block.Sign;
import org.bukkit.block.sign.Side;
/**
* A class that keeps track of the sign colors for a given sign
@@ -26,7 +27,7 @@ public class SignData {
this.sign = sign;
this.mainSignColor = mainSignColor;
this.highlightSignColor = highlightSignColor;
this.dyedColor = sign.getColor();
this.dyedColor = sign.getSide(Side.FRONT).getColor();
}
/**