Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /jacek:
- trigger:
- if player's inventory contains jack-o-lantern:
- set {_i} to jack-o-lantern named "&6&lBezpieczny Jacek" with lore "&e%player%"
- set {_a} to amount of {_i} in player's inventory
- set {_x} to jack-o-lantern named "&6&lBezpieczny Jacek"
- add amount of {_x} in player's inventory to {_a}
- remove all jack-o-lantern named "&6&lBezpieczny Jacek" from player's inventory
- add {_a} to {dynie.ilosc::%player%}
- send "&eDodano &6%{_a}% &eWesolych Jackow do twojego konta"
- remove all {_i} from player's inventory
- send "&eAktualny stan: &6%{dynie.ilosc::%player%}%"
- command /dynie [<text>]:
- permission: mod
- trigger:
- if arg 1 is set:
- set {_a} to 0
- add {dynie.ilosc::%arg 1%} to {_a}
- send "&eGracz %arg 1% ma na koncie &6%{_a}% &edyn"
- else:
- set {_l} to 0
- loop {dynie.ilosc::*}:
- if loop-value is smaller than 10:
- add "000%loop-value% &e%loop-index%" to {_f::*}
- else:
- if loop-value is smaller than 100:
- add "00%loop-value% &e%loop-index%" to {_f::*}
- else:
- if loop-value is smaller than 1000:
- add "0%loop-value% &e%loop-index%" to {_f::*}
- else:
- if loop-value is bigger than 1000:
- add "%loop-value% &e%loop-index%" to {_f::*}
- set {_f::*} to alphabetically sorted {_f::*}
- send "&6&lWczytano &c&l%size of {_f::*}% graczy&6&l:"
- loop size of {_f::*} times:
- set {_s} to size of {_f::*} - loop-number +1
- set {_msg} to {_f::%{_s}%}
- loop 3 times:
- if first 1 characters of {_msg} is "0":
- set {_msg} to subtext of {_msg} from characters 2 to (length of {_msg})
- send "&6&l%loop-number%. &f%{_msg}%"
- wait 1 tick
Add Comment
Please, Sign In to add comment