Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Server: &7&l[ &c&lServer Navn &7&l]
- Gui-Navn: &4&lStaff Menu
- Gui-Kick: &e&lKick
- Gui-Ban: &c&lBan
- Gui-Mute: &a&lMute
- Tilbage: &c&lTilbage
- Primary: &8
- Second: &7
- on load:
- delete {staff::*}
- function Staff(p: player, s: offline player):
- set {staff::%{_p}%} to {_s}
- open virtual chest with 3 rows named "{@Gui-Navn} | &l%{staff::%{_p}%}%" to {_p}
- make gui slot 11 of {_p} with feather named "{@Gui-Kick}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
- make gui slot 13 of {_p} with tnt named "{@Gui-Ban}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
- make gui slot 15 of {_p} with fire charge named "{@Gui-Mute}" with lore "&eGrund||&6Grund||&eGrund||&6Grund||"
- set {_s} to -1
- loop 9 times:
- add 1 to {_s}
- make gui slot {_s} of {_p} with red glass named " "
- set {_s} to 17
- loop 9 times:
- add 1 to {_s}
- make gui slot {_s} of {_p} with red glass named " "
- function Kick(p: player):
- open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Kick}" to {_p}
- make gui slot 10 of {_p} with feather named "Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Spam"
- make gui slot 12 of {_p} with feather named "Report Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Report Spam"
- make gui slot 14 of {_p} with feather named "Caps" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Caps"
- make gui slot 16 of {_p} with feather named "Provo" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Provo"
- make gui slot 20 of {_p} with feather named "Andet" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Andet"
- make gui slot 35 of {_p} with compass named "{@Tilbage}"
- function Ban(p: player):
- open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Ban}" to {_p}
- make gui slot 10 of {_p} with tnt named "2 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}2 Timer"
- make gui slot 12 of {_p} with tnt named "5 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}5 Timer"
- make gui slot 14 of {_p} with tnt named "12 Timer" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}12 Timer"
- make gui slot 16 of {_p} with tnt named "1 Dag" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}1 Dag"
- make gui slot 20 of {_p} with tnt named "3 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}3 Dage"
- make gui slot 22 of {_p} with tnt named "7 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}7 Dage"
- make gui slot 24 of {_p} with tnt named "14 Dage" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Tid: {@Second}14 Dage"
- make gui slot 35 of {_p} with compass named "{@Tilbage}"
- function Mute(p: player):
- open virtual chest with 4 rows named "{@Gui-Navn} &7> {@Gui-Mute}" to {_p}
- make gui slot 10 of {_p} with fire charge named "Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Spam||{@Primary}Tid: {@Second}1 Time"
- make gui slot 12 of {_p} with fire charge named "Report Spam" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Report Spam||{@Primary}Tid: {@Second}1 Time"
- make gui slot 14 of {_p} with fire charge named "Caps" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Caps||{@Primary}Tid: {@Second}20 Minutter"
- make gui slot 16 of {_p} with fire charge named "Provo" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Provo||{@Primary}Tid: {@Second}10 Minutter"
- make gui slot 20 of {_p} with fire charge named "Andet" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Andet||{@Primary}Tid: {@Second}1.5 Time"
- make gui slot 22 of {_p} with fire charge named "Reklame" with lore "{@Server}||||{@Primary}Spiller: {@Second}%{staff::%{_p}%}%||{@Primary}Grund: {@Second}Reklame||{@Primary}Tid: {@Second}7 Dage"
- make gui slot 35 of {_p} with compass named "{@Tilbage}"
- on inventory click:
- send "%inventory name of player's current inventory%%nl%%name of clicked item%" to all players
- if inventory name of player's current inventory contains "{@Gui-Navn}":
- cancel event
- name of clicked item is "{@Gui-Kick}":
- Kick(player)
- name of clicked item is "{@Gui-Ban}":
- Ban(player)
- name of clicked item is "{@Gui-Mute}":
- Mute(player)
- name of clicked item is "{@Tilbage}":
- set {_slet} to "%{staff::%{_p}%}%"
- Staff(player, {_slet})
- if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Kick}":
- name of clicked item is "Spam":
- kick "%{staff::%player%}%" with reason "Spam" as "%player%"
- name of clicked item is "Report Spam":
- kick "%{staff::%player%}%" with reason "Report Spam" as "%player%"
- name of clicked item is "Caps":
- kick "%{staff::%player%}%" with reason "Caps" as "%player%"
- name of clicked item is "Provo":
- kick "%{staff::%player%}%" with reason "Provo" as "%player%"
- name of clicked item is "Andet":
- kick "%{staff::%player%}%" with reason "Andet" as "%player%"
- if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Ban}":
- name of clicked item is "2 Timer":
- set {_time} to "2 hour" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "5 Timer":
- set {_time} to "5 hour" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "12 Timer":
- set {_time} to "12 hour" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "1 Dag":
- set {_time} to "1 day" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "3 Dage":
- set {_time} to "3 days" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "7 Dage":
- set {_time} to "7 days" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- name of clicked item is "14 Dage":
- set {_time} to "14 days" parsed as a timespan
- ban "%{staff::%player%}%" for duration {_time} as "%player%"
- if inventory name of player's current inventory is "{@Gui-Navn} &7> {@Gui-Mute}":
- name of clicked item is "Spam":
- set {_time} to "1 hour" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Spam" for duration {_time} as "%player%"
- name of clicked item is "Report Spam":
- set {_time} to "1 hour" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Report Spam" for duration {_time} as "%player%"
- name of clicked item is "Caps":
- set {_time} to "20 minutes" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Caps" for duration {_time} as "%player%"
- name of clicked item is "Provo":
- set {_time} to "10 minutes" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Provo" for duration {_time} as "%player%"
- name of clicked item is "Andet":
- set {_time} to "1.5 hour" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Andet" for duration {_time} as "%player%"
- name of clicked item is "Reklame":
- set {_time} to "7 days" parsed as a timespan
- mute "%{staff::%player%}%" with reason "Reklame" for duration {_time} as "%player%"
- command /staff <offline player>:
- permission: staff
- trigger:
- Staff(player, arg-1)
Add Comment
Please, Sign In to add comment