Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function WaitTime(p: player):
  2. if {_p} is holding name tag named "test":
  3. set {_ventetidRaid} to difference between {raided.time.%{_p}%} and now
  4. if {_ventetidRaid} is less than 24 hours:
  5. set {_raidbesked} to "%difference between 24 hours and {_ventetidRaid}%"
  6. replace all "hours" with "timer" in {_raidbesked}
  7. replace all "hour" with "time" in {_raidbesked}
  8. replace all "minutes" with "minutter" in {_raidbesked}
  9. replace all "minute" with "minut" in {_raidbesked}
  10. replace all "seconds" with "sekunder" in {_raidbesked}
  11. replace all "second" with "sekund" in {_raidbesked}
  12. replace all "and" with "og" in {_raidbesked}
  13. replace all "." with "," in {_raidbesked}
  14. send "{@prefix}Denne dør kan først åbnes om &e&n%{_ventetidRaid}%" to {_p}
  15. else:
  16. give {_p} apple named "sejt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement