mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
fixed sign id
This commit is contained in:
parent
5759e3e761
commit
9ad7a6d6ab
@ -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 New Issue
Block a user