Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /vagt [<text>] [<player>]:
- permission: vagt
- permission message: &cFejl! &7Du er ikke ansat som vagt!
- trigger:
- if arg-1 is not set:
- set {_skull} to player's skull
- wait 5 ticks
- open chest with 5 rows named "&9&L VAGT MENU" to player
- wait 1 tick
- format slot 0 of player with blue stained glass pane named " " to be unstealable
- format slot 1 of player with blue stained glass pane named " " to be unstealable
- format slot 2 of player with blue stained glass pane named " " to be unstealable
- format slot 3 of player with blue stained glass pane named " " to be unstealable
- format slot 4 of player with blue stained glass pane named " " to be unstealable
- format slot 5 of player with blue stained glass pane named " " to be unstealable
- format slot 6 of player with blue stained glass pane named " " to be unstealable
- format slot 7 of player with blue stained glass pane named " " to be unstealable
- format slot 8 of player with blue stained glass pane named " " to be unstealable
- wait 5 ticks
- format slot 36 of player with blue stained glass pane named " " to be unstealable
- format slot 37 of player with blue stained glass pane named " " to be unstealable
- format slot 38 of player with blue stained glass pane named " " to be unstealable
- format slot 39 of player with blue stained glass pane named " " to be unstealable
- format slot 40 of player with blue stained glass pane named " " to be unstealable
- format slot 41 of player with blue stained glass pane named " " to be unstealable
- format slot 42 of player with blue stained glass pane named " " to be unstealable
- format slot 43 of player with blue stained glass pane named " " to be unstealable
- format slot 44 of player with blue stained glass pane named " " to be unstealable
- format slot 19 of player with golden apple:1 named "&3&nBUFFS" with lore " ||&7Klik for at tage dine buffs" to close then run [make player execute command "/vagt buff"]
- format slot 21 of player with compass named "&3&nWARP" with lore " ||&7Klik for at warpe til andre afdelinger" to close then run [make player execute command "/vagt warp"]
- format slot 23 of player with golden ingot named "&3&nLØN" with lore " ||&7Klik for at se din løn" to close then run [make player execute command "/vagt løn"]
- format slot 25 of player with {_skull} named "&3&nSTATS" with lore " ||&7Dine stats:||&7||&7Dræbte: &c%{vagt.kills.%player%}%||&7Døde: &c%{vagt.døde.%player%}%||&7Brød samlet: &c%{vagtstats.brød.%player%}%" to close then run [make player execute command "/vagt stats"]
- if arg-1 is "buff":
- apply swiftness 2 to player for 999 days
- apply strength 2 to player for 999 days
- apply absorption 2 to player for 999 days
- send "&aSuccess! &7Du modtaget dine buffs"
- if arg-1 is "warp":
- wait 5 ticks
- open chest with 5 rows named "&9&L VAGT WARP" to player
- wait 1 tick
- format slot 0 of player with blue stained glass pane named " " to be unstealable
- format slot 1 of player with blue stained glass pane named " " to be unstealable
- format slot 2 of player with blue stained glass pane named " " to be unstealable
- format slot 3 of player with blue stained glass pane named " " to be unstealable
- format slot 4 of player with blue stained glass pane named " " to be unstealable
- format slot 5 of player with blue stained glass pane named " " to be unstealable
- format slot 6 of player with blue stained glass pane named " " to be unstealable
- format slot 7 of player with blue stained glass pane named " " to be unstealable
- format slot 8 of player with blue stained glass pane named " " to be unstealable
- wait 5 ticks
- format slot 36 of player with blue stained glass pane named " " to be unstealable
- format slot 37 of player with blue stained glass pane named " " to be unstealable
- format slot 38 of player with blue stained glass pane named " " to be unstealable
- format slot 39 of player with blue stained glass pane named " " to be unstealable
- format slot 40 of player with blue stained glass pane named " " to be unstealable
- format slot 41 of player with blue stained glass pane named " " to be unstealable
- format slot 42 of player with blue stained glass pane named " " to be unstealable
- format slot 43 of player with blue stained glass pane named " " to be unstealable
- format slot 44 of player with blue stained glass pane named " " to be unstealable
- format slot 20 of player with green stained glass pane named "&3&nWARP C" with lore " ||&7Klik for at warpe til C-vagtstue" to close then run [make console execute command "/warp cvagt %player%"]
- if player have permission "C.Vagt":
- format slot 22 of player with red stained glass pane named "&c&nINGEN ADGANG!" with lore " ||&7Du har ikke adgang til B" to be unstealable
- if player have permission "A.Vagt" or "B.Vagt":
- format slot 22 of player with green stained glass pane named "&3&nWARP B" with lore " ||&7Klik for at warpe til B-vagtstue" to close then run [make console execute command "/warp bvagt %player%"]
- if player have permission "B.Vagt" or "C.Vagt":
- format slot 24 of player with red stained glass pane named "&c&nINGEN ADGANG" with lore " ||&7Du har ikke adgang til A" to be unstealable
- if player have permission "A.Vagt":
- format slot 24 of player with green stained glass pane named "&3&nWARP A" with lore " ||&7Klik for at warp til A-vagtstue" to close then run [make console execute command "/warp avagt %player%"]
- if arg-1 is "løn":
- send "&m----|---- &9 &lLØN &f&m----|----"
- send ""
- send "&7Din løn: &9%{vagtløn.%player%}%"
- send "&7Modtager løn om: &9%{vagtløn.tid.%player%} - {vagtløn.tid.minutter.%player%}% minutter"
- send ""
- send "&m----|---- &9 &lLØN &f&m----|----"
- if arg-1 is "stats":
- wait 5 ticks
- open chest with 5 rows named "&9&L VAGT STATS" to player
- wait 1 tick
- format slot 0 of player with blue stained glass pane named " " to be unstealable
- format slot 1 of player with blue stained glass pane named " " to be unstealable
- format slot 2 of player with blue stained glass pane named " " to be unstealable
- format slot 3 of player with blue stained glass pane named " " to be unstealable
- format slot 4 of player with blue stained glass pane named " " to be unstealable
- format slot 5 of player with blue stained glass pane named " " to be unstealable
- format slot 6 of player with blue stained glass pane named " " to be unstealable
- format slot 7 of player with blue stained glass pane named " " to be unstealable
- format slot 8 of player with blue stained glass pane named " " to be unstealable
- wait 5 ticks
- format slot 36 of player with blue stained glass pane named " " to be unstealable
- format slot 37 of player with blue stained glass pane named " " to be unstealable
- format slot 38 of player with blue stained glass pane named " " to be unstealable
- format slot 39 of player with blue stained glass pane named " " to be unstealable
- format slot 40 of player with blue stained glass pane named " " to be unstealable
- format slot 41 of player with blue stained glass pane named " " to be unstealable
- format slot 42 of player with blue stained glass pane named " " to be unstealable
- format slot 43 of player with blue stained glass pane named " " to be unstealable
- format slot 44 of player with blue stained glass pane named " " to be unstealable
- set {_vagter} to 9
- loop all players:
- if loop-player have permission "vagt":
- format slot {_vagter} of player with skull of loop-player named "&3&n%loop-player%" with lore " ||&7Vagt stats:||&7 ||&7Dræbte: %{vagt.kills.%loop-player%}%||&7Døde: %{vagt.døde.%loop-player%}%||&7Brød samlet: %{vagtstats.brød.%loop-player%}%" to be unstealable
- add 1 to {_vagter}
- on pickup:
- if player has permission "vagt":
- if event-item is bread:
- add 1 to {vagtstats.brød.%player%}
- on join:
- loop all players:
- if loop-player have permission "vagt":
- if loop-player have permission "C.Vagt":
- set {vagtløn.%loop-player%} to 1000
- else if loop-player have permission "B.Vagt":
- set {vagtløn.%loop-player%} to 1500
- else if loop-player have permission "A.Vagt":
- set {vagtløn.%loop-player%} to 3000
- set {vagtløn.tid.%loop-player%} to 45
- if {vagtløn.tid.minutter.%loop-player%} is more than {vagtløn.tid.%loop-player%}:
- set {vagtløn.tid.minutter} to 0
- if {vagt.kills.%player%} is not set:
- set {vagt.kills.%player%} to 0
- if {vagt.døde.%player%} is not set:
- set {vagt.døde.%player%} to 0
- if {vagtstats.brød.%player%} is not set:
- set {vagtstats.brød.%player%} to 0
- if {vagtstats.løn.gange.%player%} is not set:
- set {vagtstats.løn.gange.%player%} to 0
- if {vagtchat.%player%} is not set:
- set {vagtchat.%player%} to true
- Every 1 second in "world":
- loop all players:
- if loop-player have permission "vagt":
- add 1 to {vagtløn.tid.sekunder.%loop-player%}
- if {vagtløn.tid.sekunder.%loop-player%} is 60:
- add 1 to {vagtløn.tid.minutter.%loop-player%}
- set {vagtløn.tid.sekunder.%loop-player%} to 0
- if {vagtløn.tid.minutter.%loop-player%} is 45:
- set {vagtløn.tid.minutter.%loop-player%} to 0
- add 1 to {vagtstats.løn.gange.%loop-player%}
- send "&9&lVAGT &8- &7Du modtog din løn på %{vagtløn.%loop-player%}%" to loop-player
- add {vagtløn.%loop-player%} to loop-player's balance
- command /vagtadmin [<text>] [<offline player>] [<integer>]:
- permission: vagt.admin
- permission message: &cFejl! &7Du er ikke vagt ansvarlig!
- trigger:
- if arg-1 is not set:
- send "&m------------------ &9 &lVAGT &f&m------------------ "
- send ""
- send "&9/vagtadmin ansæt spiller &8| &7Ansæt en vagt"
- send "&9/vagtadmin fyr spiller &8| &7Fyr en vagt"
- send "&9/vagtadmin løn spiller beløb &8| &7Ændre en vagts løn"
- send ""
- send "&m------------------ &9 &LADMIN &f&m------------------ "
- if arg-1 is "ansæt":
- if arg-2 is set:
- send "&9&lVAGT &8- &7Du ansatte &a%arg-2% &7som vagt"
- execute console command "/manuadd %arg-2% C-Vagt"
- send "&9&l VAGT &8- &7Du blev ansat som vagt" to arg-2
- set arg-2's balance to 0
- clear arg-2's inventory
- make player execute command "/vagtkit"
- else if arg-2 is not set:
- send "&cFejl! &7Korrekt brug &a/vagtadmin ansæt (spiller)"
- if arg-1 is "fyr":
- if arg-2 is set:
- send "&9&lVAGT &8- &7Du fyrede &c%arg-2%"
- execute console command "manuadd %arg-2% default"
- send "&9&lVAGT &8- &7Du er blevet &cfyret" to arg-2
- clear arg-2's inventory
- set arg-2's balance to 0
- delete {vagtløn.%arg-2%}
- delete {vagtstats.vagtløn.gange.%arg-2%}
- delete {vagt.kills.%arg-2%}
- delete {vagt.døde.%arg-2%}
- delete {vagtstats.brød.%arg-2%}
- if arg-1 is "løn":
- if arg-2 is set:
- if arg-3 is set:
- set {vagtløn.%arg-2%} to arg-3
- send "&9&lVAGT &8- &7Din nye løn er &a%{vagtløn.%arg-2%}%" to arg-2
- send "&9&lVAGT &8- &7Du ændrede &a%arg-2%'s &7løn til &a%{vagtløn.%arg-2%}%"
- else:
- send "&9&lVAGT &8- &7Indtast en løn"
- else:
- send "&9&lVAGT &8- &7Indtats en spiller, og en løn"
- command /vagtchat [<text>]:
- aliases: vc, vagtc, cv
- permission: vagt
- trigger:
- if arg-1 is not set:
- send "&m------------------ &9 &lVAGTCHAT &f&m------------------ "
- send ""
- send "&9/vagtchat besked &8| &7Send en besked i vagtchatten"
- send "&9/vagtchat on/til &8| &7Slå vagtchatten til"
- send "&9/vagtchat off/fra &8| &7Slå vagtchatten fra"
- send "&9Aliases &8| &7/vc, /vagtc eller /cv"
- send ""
- send "&m------------------ &9 &lVAGTCHAT &f&m------------------ "
- if arg-1 is "on" or "til":
- set {vagtchat.%player%} to true
- send "&9VAGTCHAT&8 » &7Din vagt chat er slået &atil"
- stop
- if arg-1 is "off" or "fra":
- set {vagtchat.%player%} to false
- send "&9VAGTCHAT&8 » &7Din vagt chat er slået &cfra"
- stop
- if arg-1 is set:
- set {_prefix} to "%colored player's prefix%"
- loop all players:
- if loop-player have permission "vagt":
- if {vagtchat.%player%} is true:
- send "&9VAGTCHAT&8 » %{_prefix}%&7%player%: &f%arg-1%" to loop-player
- command /straf [<offline player>] [<text>]:
- aliases: ej, iso, jail
- permission: vagt
- trigger:
- if arg-1 is not set:
- send "&m------------------ &9 &lVAGTSTRAF &f&m------------------ "
- send ""
- send "&9/straf spiller grund &8| &7Jail en spiller"
- send "&9/straf spiller fjern &8| &7Unjail en spiller"
- send "&9/straf grunde &8| &7Slå vagtchatten fra"
- send "&9/straf stats &8| &7Se dine stats"
- send "&9Aliases &8| &7/ej, /iso eller /jail"
- send ""
- send "&m------------------ &9 &lVAGTSTRAF &f&m------------------ "
- if arg-1 is "grunde":
- if player have permission "vagt":
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement