szumielxd

Dynie

Nov 5th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. command /jacek:
  2. trigger:
  3. if player's inventory contains jack-o-lantern:
  4. set {_i} to jack-o-lantern named "&6&lBezpieczny Jacek" with lore "&e%player%"
  5. set {_a} to amount of {_i} in player's inventory
  6. set {_x} to jack-o-lantern named "&6&lBezpieczny Jacek"
  7. add amount of {_x} in player's inventory to {_a}
  8. remove all jack-o-lantern named "&6&lBezpieczny Jacek" from player's inventory
  9. add {_a} to {dynie.ilosc::%player%}
  10. send "&eDodano &6%{_a}% &eWesolych Jackow do twojego konta"
  11. remove all {_i} from player's inventory
  12. send "&eAktualny stan: &6%{dynie.ilosc::%player%}%"
  13.  
  14.  
  15. command /dynie [<text>]:
  16. permission: mod
  17. trigger:
  18. if arg 1 is set:
  19. set {_a} to 0
  20. add {dynie.ilosc::%arg 1%} to {_a}
  21. send "&eGracz %arg 1% ma na koncie &6%{_a}% &edyn"
  22. else:
  23. set {_l} to 0
  24. loop {dynie.ilosc::*}:
  25. if loop-value is smaller than 10:
  26. add "000%loop-value% &e%loop-index%" to {_f::*}
  27. else:
  28. if loop-value is smaller than 100:
  29. add "00%loop-value% &e%loop-index%" to {_f::*}
  30. else:
  31. if loop-value is smaller than 1000:
  32. add "0%loop-value% &e%loop-index%" to {_f::*}
  33. else:
  34. if loop-value is bigger than 1000:
  35. add "%loop-value% &e%loop-index%" to {_f::*}
  36. set {_f::*} to alphabetically sorted {_f::*}
  37. send "&6&lWczytano &c&l%size of {_f::*}% graczy&6&l:"
  38. loop size of {_f::*} times:
  39. set {_s} to size of {_f::*} - loop-number +1
  40. set {_msg} to {_f::%{_s}%}
  41. loop 3 times:
  42. if first 1 characters of {_msg} is "0":
  43. set {_msg} to subtext of {_msg} from characters 2 to (length of {_msg})
  44. send "&6&l%loop-number%. &f%{_msg}%"
  45. wait 1 tick
Add Comment
Please, Sign In to add comment