Advertisement
pz_neko

Untitled

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