mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
fixed sign id
This commit is contained in:
parent
5759e3e761
commit
9ad7a6d6ab
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ public class PlotHelper {
|
||||||
Block bs = loc.getBlock();
|
Block bs = loc.getBlock();
|
||||||
bs.setType(Material.AIR);
|
bs.setType(Material.AIR);
|
||||||
bs.setTypeIdAndData(Material.WALL_SIGN.getId(), (byte) 2, false);
|
bs.setTypeIdAndData(Material.WALL_SIGN.getId(), (byte) 2, false);
|
||||||
String id = p.id.y + ";" + p.id.x;
|
String id = p.id.x + ";" + p.id.y;
|
||||||
Sign sign = (Sign) bs.getState();
|
Sign sign = (Sign) bs.getState();
|
||||||
sign.setLine(0, C.OWNER_SIGN_LINE_1.translated().replaceAll("%id%", id));
|
sign.setLine(0, C.OWNER_SIGN_LINE_1.translated().replaceAll("%id%", id));
|
||||||
sign.setLine(1, C.OWNER_SIGN_LINE_2.translated().replaceAll("%id%", id).replaceAll("%plr%", plr.getName()));
|
sign.setLine(1, C.OWNER_SIGN_LINE_2.translated().replaceAll("%id%", id).replaceAll("%plr%", plr.getName()));
|
||||||
|
|
Loading…
Reference in a new issue