Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. options:
  2. prefix: &7[&bChestProtection]
  3.  
  4. On rightclick on chest:
  5. loop all blocks in radius 1 around event-block:
  6. if loop-block is a sign:
  7. if line 2 of loop-block is "&4[Protected]":
  8. if line 3 of loop-block is "%player%":
  9. stop
  10. else:
  11. cancel event
  12. send "{@prefix} &cDiese Truhe gehört nicht dir!"
  13. play "NOTE_BASS" to player
  14.  
  15. On rightclick on sign:
  16. if player has permissions "chestprotection.use":
  17. if line 1 is "[Protect]":
  18. set line 1 to ""
  19. set line 2 to "&4[Protected]"
  20. set line 3 to "%player%"
  21. else:
  22. send "{@prefix} &cKeine Rechte!"
  23.  
  24. On break:
  25. if event-block is a sign:
  26. if line 2 is "&4[Protected]":
  27. if line 3 is "%player%":
  28. stop
  29. else:
  30. cancel event
  31. send "{@prefix} &cDiese Truhe gehört nicht dir!"
  32. play "NOTE_BASS" to player
  33.  
  34. On break:
  35. if event-block is a chest:
  36. loop all blocks in radius 1 around event-block:
  37. if loop-block is a sign:
  38. if line 2 of loop-block is "&4[Protected]":
  39. if line 3 of loop-block is "%player%":
  40. stop
  41. else:
  42. cancel event
  43. send "{@prefix} &cDiese Truhe gehört nicht dir!"
  44. play "NOTE_BASS" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement