Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sign sign;
- if (face == BlockFace.UP) {
- sign = new Sign(Material.SIGN_POST);
- sign.setData(getFacingDirection(face.getOppositeFace()));
- } else {
- sign = new Sign(Material.WALL_SIGN);
- sign.setData(getFacingDirection(face.getOppositeFace()));
- }
- Block b = block.getRelative(face);
- b.setData(sign.getData());
- b.setType(sign.getItemType());
- org.bukkit.block.Sign sBlock = (org.bukkit.block.Sign) b.getState();
- sBlock.setLine(0, "Here lies");
- sBlock.setLine(1, targetLife.getName());
- sBlock.setLine(2, "RIP");
Add Comment
Please, Sign In to add comment