Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Autor MatZur
- options:
- tag: &6&l[&a&lDailyReward&6&l]
- command /dailyreward [<text>] [<text>]:
- permission: DailyReward.Admin
- permission message: Nie masz permisji do uzywania tej komendy!
- trigger:
- if arg 1 is "add":
- if arg 2 is not set:
- send "{@tag}&9&lMusisz wpisac przedmiot jaki chcesz dodac!"
- else:
- add arg 2 to {DailyReward::*}
- send "{@tag}&9&lPomyslnie dodano &c&l%arg2%&9&l!"
- if arg 1 is "remove":
- send "{@tag}&9&lMusisz wpisac przedmiot jaki chcesz usunac!"
- else:
- remove arg 2 from {DailyReward::*}
- send "{@tag}&9&lPomyslnie usunieto &c&l%arg2%&9&l!"
- if arg 1 is "list":
- if arg 2 is not set:
- send "{@tag}&9&lLista przedmitow w &a&lDailyReward&9&l:"
- send "&c&l%{DailyReward::*}"
- if arg 1 is not set:
- send "{@tag}Wpisz &c&l/dailyreward help &9&lzeby uzyskac pomoc!"
- if arg 1 is "help":
- if arg 2 is not set:
- send "{@tag}&9&lWpisz &c&l/dailyreward add < nazwa przedmiotu> &9&lzeby dodac przedmiot!"
- send "{@tag}&9&lWpisz &c&l/dailyreward remove <nazwa przedmiotu> &9&lzeby usunac przedmiot!"
- send "{@tag}&9&lWpisz &c&l/dailyreward list &9&lzeby zobaczyc liste przedmiotow!"
- on login:
- wait 3 seconds
- set {_time} to difference between {opoznienie.%player%} and now
- if {_time} is less than 12 hours :
- send "<red><bold> Poczekaj jeszcze %difference between 12 hours and {_time}% do nastepnej szansy na prezent!"
- else:
- chance of 50%:
- give a random item of {DailyReward::*} to player
- send "{tag}&9&lOtrzymales prezent!"
- set {opoznienie.%player%} to now
- else:
- send "{@tag}&9&lTym razem nie otrzymales prezentu!"
- set {opoznienie.%player%} to now
Advertisement
Add Comment
Please, Sign In to add comment