Advertisement
Guest User

BChest

a guest
Nov 25th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. on sign edit:
  2. if block below event-block is chest:
  3. set line 1 of event-block to "[Privado]"
  4. set line 2 of event-block to "%player%"
  5. send "&6&l[Server] &aSeu Bau esta Protegido fique tranquilo somente você pode abri-lo"
  6.  
  7. on right click on a chest:
  8. set {_acima} to block above event-block
  9. if {_acima} is a sign:
  10. if line 1 of {_acima} is "[Privado]":
  11. if line 2 of {_acima} is %player%:
  12. stop
  13. else:
  14. cancel event
  15. send "&4&lVocê nao tem permissao para fazer isso!"
  16.  
  17. on break of a chest:
  18. set {_acima} to block above event-block
  19. if {_acima} is a sign:
  20. if line 1 of {_acima} is "[Privado]":
  21. if line 2 of {_acima} is %player%:
  22. stop
  23. else:
  24. cancel event
  25. send "&4&lVocê nao tem permissao para fazer isso!"
  26.  
  27. on break of a sign:
  28. if line 1 of event-block is "[Privado]":
  29. if line 2 of event-block is "%player%":
  30. stop
  31. else:
  32. cancel event
  33. send "&4&lVocê nao tem permissao para fazer isso!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement