Guest User

Untitled

a guest
Jan 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. Sign sign;
  2. if (face == BlockFace.UP) {
  3. sign = new Sign(Material.SIGN_POST);
  4. sign.setData(getFacingDirection(face.getOppositeFace()));
  5. } else {
  6. sign = new Sign(Material.WALL_SIGN);
  7. sign.setData(getFacingDirection(face.getOppositeFace()));
  8. }
  9.  
  10. Block b = block.getRelative(face);
  11. b.setData(sign.getData());
  12. b.setType(sign.getItemType());
  13.  
  14. org.bukkit.block.Sign sBlock = (org.bukkit.block.Sign) b.getState();
  15. sBlock.setLine(0, "Here lies");
  16. sBlock.setLine(1, targetLife.getName());
  17. sBlock.setLine(2, "RIP");
Add Comment
Please, Sign In to add comment