Advertisement
pz_neko

Untitled

Aug 23rd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. on inventory close:
  2. inventory name of player's current inventory contain "&e%Player%"
  3. set {_sn} to 0
  4. loop 54 times:
  5. set {storage.%uuid of player%::%{_sn}%} to slot {_sn} of player's current inventory
  6. add 1 to {_sn}
  7.  
  8. command /storage [<offline Player>]:
  9. aliases: st
  10. trigger:
  11. if arg-1 is not set:
  12. open chest with 6 rows named "&e%Player%" to player
  13. set {_sn} to 0
  14. loop 54 times:
  15. set slot {_sn} of player's current inventory to {storage.%uuid of player%::%{_sn}%}
  16. add 1 to {_sn}
  17. else:
  18. Player has permission "admin.sk"
  19. open chest with 6 rows named "&e%arg-1%" to player
  20. set {_sn} to 0
  21. loop 54 times:
  22. set slot {_sn} of player's current inventory to {storage.%uuid of arg-1%::%{_sn}%}
  23. add 1 to {_sn}
  24.  
  25. on RightClick:
  26. player's tool is enchanted with Protection 0
  27. open chest with 6 rows named "&e%Player%" to player
  28. set {_sn} to 0
  29. loop 54 times:
  30. set slot {_sn} of player's current inventory to {storage.%uuid of player%::%{_sn}%}
  31. add 1 to {_sn}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement