Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /peliaika [<offlineplayer>]:
- trigger:
- if arg-1 is not set:
- if {days.%player%} is set:
- send ""
- send "&6Peliaika: &e%{minutes.%player%}%&6m, &e%{hours.%player%}%&6t, &e%{days.%player%}%&6p."
- send ""
- else:
- if {hours.%player%} is set:
- send ""
- send "&6Peliaika: &e%{minutes.%player%}%&6m, &e%{hours.%player%}%&6t."
- send ""
- else:
- if {minutes.%player%} is set:
- send ""
- send "&6Peliaika: &e%{minutes.%player%}%&6m."
- send ""
- else:
- send "&cLähde ja tule takaisin, kiitos!"
- else:
- if {days.%arg-1%} is set:
- send ""
- send "&6Pelaajan %arg-1% peliaika: &e%{minutes.%arg-1%}%&6m, &e%{hours.%arg-1%}%&6t, &e%{days.%arg-1%}%&6p."
- send ""
- else:
- if {hours.%arg-1%} is set:
- send ""
- send "&6Pelaajan %arg-1% peliaika: &e%{minutes.%arg-1%}%&6m, &e%{hours.%arg-1%}%&6t."
- send ""
- else:
- if {minutes.%arg-1%} is set:
- send ""
- send "&6Pelaajan %arg-1% peliaika: &e%{minutes.%arg-1%}%&6m."
- send ""
- else:
- send "&cPelaaja ei ole palvelimella."
- every 1 minute:
- loop all players:
- if {hours.%loop-player%} is higher than 23:
- set {hours.%loop-player%} to 0
- add 1 to {days.%loop-player%}
- add 1 to {minutes.%loop-player%}
- wait 10 ticks
- if {minutes.%loop-player%} is greater than 59:
- set {minutes.%loop-player%} to 0
- add 1 to {hours.%loop-player%}
- on join:
- wait 1 second
- if {minutes.%player%} is not set:
- set {minutes.%player%} to 0
- on join:
- wait 1 second
- if {hours.%player%} is not set:
- set {minutes.%player%} to 0
- on join:
- wait 1 second
- if {days.%player%} is not set:
- set {minutes.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement