Ban Gui Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CoolegCole

Member
Oct 10, 2019
2
0
0
I tried to make a ban gui that you could add the reason + how long it lasts in-game, and delete it and stuff, but it kept giving me errors and I can't figure out what is wrong! Im new to skript so if this is obvious sorry. Using tuske

command /bangui [<player>]:
permission: op
trigger:
open virtual chest with 3 rows named "Ban GUI" to player
set {_slot} to 0
loop {reason::*}:
format gui slot {_slot} to bedrock with name "{reason::{_slot}}" to close then run player command "/tempban %arg 1% %{length::{_slot}}% %{reason::{_slot}}%"
add 1 to {_slot}

command /banguiadd [<string>] [<string>]:
permission: op
trigger:
add "%arg 1%" to {reason::*}
add "%arg 2%" to {length::*}

command /banguidel [<number>]:
permission: op
trigger:
remove "{reason::{%arg 1%}}" from {reason::*}
remove "{length::{%arg 1%}}" from {length::*}

command /banguilist:
permission: op
trigger:
send "%{reason::*}%" to player
 
Last edited:
Status
Not open for further replies.