fixed sign id

This commit is contained in:
boy0001 2014-10-21 16:51:47 +11:00
parent 5759e3e761
commit 9ad7a6d6ab

View File

@ -231,7 +231,7 @@ public class PlotHelper {
Block bs = loc.getBlock();
bs.setType(Material.AIR);
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.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()));