Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2. if arg-1 is "editmode":
  3. if player has permission "PIT.EDITMODE":
  4. if {pit.%uuid of player%.build} is not set:
  5. set {pit.%uuid of player%.build} to true
  6. send "%colored {THEPIT::MESSAGES::PREFIX}% &cYou are now able to build."
  7. stop
  8. else:
  9. delete {pit.%uuid of player%.build}
  10. send "%colored {THEPIT::MESSAGES::PREFIX}% &cYou are not allowed to build anymore."
  11. stop
  12. else:
  13. send "%colored {THEPIT::MESSAGES::PREFIX}% &cYou don't have permission to do that."
  14. stop
  15.  
  16.  
  17.  
  18. on place:
  19. if {pit.%uuid of player%.build} is set:
  20. stop
  21. if {pit.%uuid of player%.state} is "ingame":
  22. if event-block is obsidian:
  23. wait 120 seconds
  24. set event-block to air
  25. if event-block is lava:
  26. wait 2 seconds
  27. set event-block to air
  28. else:
  29. cancel event
  30. else:
  31. stop
  32. on break:
  33. if {pit.%uuid of player%.build} is set:
  34. stop
  35. if {pit.%uuid of player%.state} is "ingame":
  36. cancel event
  37. else:
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement