Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. function time(sek: number) :: text:
  2. if {_sek} is greater than 3600:
  3. set {_hours} to floor({_sek}/3600)
  4. set {_1} to {_hours}*3600
  5. set {_minutes1} to {_sek}-{_1}
  6. set {_minutes} to floor({_minutes1}/60)
  7. set {_2} to {_minutes}*60
  8. set {_seconds} to {_minutes1}-{_2}
  9. set {_time} to "%{_hours}% timer og %{_minutes}% minutter og %{_seconds}% sekunder"
  10. else if {_sek} is greater than 60:
  11. set {_minutes} to floor({_sek}/60)
  12. set {_1} to {_minutes}*60
  13. set {_seconds} to {_sek}-{_1}
  14. set {_time} to "%{_minutes}% minutter og %{_seconds}% sekunder"
  15. else:
  16. set {_time} to "%{_sek}% sekunder"
  17. return "%{_time}%"
  18. every second:
  19. loop all players:
  20. if loop-player have permission "vagt.*":
  21. add 1 to {ontime::%uuid of loop-player%}
  22. command /setontime <number>:
  23. permission: set.time
  24. trigger:
  25. set {ontime::%uuid of player%} to arg-1
  26. message "&aDin ontime er nu sat til %arg-1%"
  27. on join:
  28. if player has permission "vagt.*":
  29. if {ontime::%uuid of player%} is not set:
  30. set {ontime::%uuid of player%} to 0
  31. if {kills.%player%} is not set:
  32. if {døde.%player%} is not set:
  33. set {kills.%player%} to "&f0"
  34. set {døde.%player%} to "&f0"
  35. on death of player:
  36. add 1 to {kills.%attacker%}
  37. add 1 to {døde.%victim%}
  38.  
  39. command /vagt:
  40. permission: vagt.*
  41. permission message: &4&lGleeeeem Det!
  42. trigger:
  43. open chest with 6 rows named "Vagt" to player
  44. wait 1 tick
  45. format slot 10 of player with diamond sword named "&4&lPvP &c&lStats:" with lore "&aKills: %{kills.%player%}%||&4Død: &c%{døde.%player%}%" to be unstealable
  46. format slot 12 of player with 166 named "&4&lLÅST:" with lore "&cDu kan ikke købe rankup!" to close
  47. format slot 14 of player with clock named "&a&lOnline &b&ltid:" with lore "&f%{timer.%player%}% timer, %{min.%player%}% min. & %{sek.%player%}% sek." to be unstealable
  48. format slot 16 of player with 166 named "&4&lLÅST:" with lore "&cDu kan ikke fyre vagter!" to close
  49. format slot 29 of player with gold ingot named "&2&lLøn:" with lore "&2Løn niveau: &c&lUde af drift." to close
  50. evaluate "format slot 31 of player with Strength potion II item named ""&5&lBUFFS"" with lore ""&eTryk her, for at få dine vagt buffs!"" to close then run [apply potion of speed of tier 3 to the player for 120 seconds]->[apply potion of strength of tier 2 to the player for 60 seconds]"
  51. while inventory name of player's current inventory is "Vagt":
  52. set {_t} to time({ontime::%uuid of player%})
  53. set slot 14 of player's current inventory to clock named "&a&lOnline &b&ltid:" with lore "&f%{_t}%"
  54. wait 1 second
  55. wait 1 second
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement