Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function time(sek: number) :: text:
- if {_sek} is greater than 3600:
- set {_hours} to floor({_sek}/3600)
- set {_1} to {_hours}*3600
- set {_minutes1} to {_sek}-{_1}
- set {_minutes} to floor({_minutes1}/60)
- set {_2} to {_minutes}*60
- set {_seconds} to {_minutes1}-{_2}
- set {_time} to "%{_hours}% timer og %{_minutes}% minutter og %{_seconds}% sekunder"
- else if {_sek} is greater than 60:
- set {_minutes} to floor({_sek}/60)
- set {_1} to {_minutes}*60
- set {_seconds} to {_sek}-{_1}
- set {_time} to "%{_minutes}% minutter og %{_seconds}% sekunder"
- else:
- set {_time} to "%{_sek}% sekunder"
- return "%{_time}%"
- every second:
- loop all players:
- if loop-player have permission "vagt.*":
- add 1 to {ontime::%uuid of loop-player%}
- command /setontime <number>:
- permission: set.time
- trigger:
- set {ontime::%uuid of player%} to arg-1
- message "&aDin ontime er nu sat til %arg-1%"
- on join:
- if player has permission "vagt.*":
- if {ontime::%uuid of player%} is not set:
- set {ontime::%uuid of player%} to 0
- if {kills.%player%} is not set:
- if {døde.%player%} is not set:
- set {kills.%player%} to "&f0"
- set {døde.%player%} to "&f0"
- on death of player:
- add 1 to {kills.%attacker%}
- add 1 to {døde.%victim%}
- command /vagt:
- permission: vagt.*
- permission message: &4&lGleeeeem Det!
- trigger:
- open chest with 6 rows named "Vagt" to player
- wait 1 tick
- 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
- format slot 12 of player with 166 named "&4&lLÅST:" with lore "&cDu kan ikke købe rankup!" to close
- format slot 14 of player with clock named "&a&lOnline &b<id:" with lore "&f%{timer.%player%}% timer, %{min.%player%}% min. & %{sek.%player%}% sek." to be unstealable
- format slot 16 of player with 166 named "&4&lLÅST:" with lore "&cDu kan ikke fyre vagter!" to close
- format slot 29 of player with gold ingot named "&2&lLøn:" with lore "&2Løn niveau: &c&lUde af drift." to close
- 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]"
- while inventory name of player's current inventory is "Vagt":
- set {_t} to time({ontime::%uuid of player%})
- set slot 14 of player's current inventory to clock named "&a&lOnline &b<id:" with lore "&f%{_t}%"
- wait 1 second
- wait 1 second
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement