Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function WaitTime(p: player):
- if {_p} is holding name tag named "test":
- set {_ventetidRaid} to difference between {raided.time.%{_p}%} and now
- if {_ventetidRaid} is less than 24 hours:
- set {_raidbesked} to "%difference between 24 hours and {_ventetidRaid}%"
- replace all "hours" with "timer" in {_raidbesked}
- replace all "hour" with "time" in {_raidbesked}
- replace all "minutes" with "minutter" in {_raidbesked}
- replace all "minute" with "minut" in {_raidbesked}
- replace all "seconds" with "sekunder" in {_raidbesked}
- replace all "second" with "sekund" in {_raidbesked}
- replace all "and" with "og" in {_raidbesked}
- replace all "." with "," in {_raidbesked}
- send "{@prefix}Denne dør kan først åbnes om &e&n%{_ventetidRaid}%" to {_p}
- else:
- give {_p} apple named "sejt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement