help for ban gui

  • 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 comminuty!

    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.

xflyer_23

Member
May 12, 2020
14
0
0
34
Code:
 /ban <player> <text>:
    aliases: /tempban
    permission: ban.use
    permission message: &cNo Permission.
    trigger:
        if arg-1 is not set:
            send "&7&cBan&7 &c/ban &7<player> reason"
        if arg-1 is set:
            open chest with 2 rows named "&b&lSelect Ban Reason" to player
            wait 1 tick
            format slot 0 of player with observer named "&aCyberbullying" with lore "&7Bullying on the server" to close then run "/ban %player% Cyberbullying"
            format slot 1 of player with lead named "&aServer Advertising" with lore "&7" to close then run "/ban %player% Server Advertising"
            format slot 2 of player with barrier named "&aCheating" with lore "&7" to close then run "/ban %player% Cheating"
            format slot 3 of player with bedrock named "&aGlitching" with lore "&7Exploiting bugs to advantage" to close then run "/ban %player% Glitching"
            format slot 4 of player with paper named "&aStrike 5" with lore "&c&l5TH WARN" to close then run "/ban %player% over 5 warns"
            format slot 5 of player with compass named "&aBan Evasion" with lore "&7Using an alt to bypass ban" to close then run "/ban %player% Ban Evasion"
            format slot 6 of player with daylight sensor named "&aServer ToS Violation" with lore "&7Terms of Service Violation" to close then run "/ban %player% Server ToS Violation"
            format slot 7 of player with melon slice named "&aAutoclick" with lore "&7Using a client to automatically click" to close then run"/ban %player% Autoclick"
            format slot 8 of player with boat named "&aOther" with lore "&7Other ban reason" to close then run "/ban %player%"
            format slot 18 of player with red wool named "&aCancel" with lore "&7" to close
[doublepost=1589852917,1589852826][/doublepost]please someone help correct this
 
Code:
 /ban <player> <text>:
    aliases: /tempban
    permission: ban.use
    permission message: &cNo Permission.
    trigger:
        if arg-1 is not set:
            send "&7&cBan&7 &c/ban &7<player> reason"
        if arg-1 is set:
            open chest with 2 rows named "&b&lSelect Ban Reason" to player
            wait 1 tick
            format slot 0 of player with observer named "&aCyberbullying" with lore "&7Bullying on the server" to close then run "/ban %player% Cyberbullying"
            format slot 1 of player with lead named "&aServer Advertising" with lore "&7" to close then run "/ban %player% Server Advertising"
            format slot 2 of player with barrier named "&aCheating" with lore "&7" to close then run "/ban %player% Cheating"
            format slot 3 of player with bedrock named "&aGlitching" with lore "&7Exploiting bugs to advantage" to close then run "/ban %player% Glitching"
            format slot 4 of player with paper named "&aStrike 5" with lore "&c&l5TH WARN" to close then run "/ban %player% over 5 warns"
            format slot 5 of player with compass named "&aBan Evasion" with lore "&7Using an alt to bypass ban" to close then run "/ban %player% Ban Evasion"
            format slot 6 of player with daylight sensor named "&aServer ToS Violation" with lore "&7Terms of Service Violation" to close then run "/ban %player% Server ToS Violation"
            format slot 7 of player with melon slice named "&aAutoclick" with lore "&7Using a client to automatically click" to close then run"/ban %player% Autoclick"
            format slot 8 of player with boat named "&aOther" with lore "&7Other ban reason" to close then run "/ban %player%"
            format slot 18 of player with red wool named "&aCancel" with lore "&7" to close
[doublepost=1589852917,1589852826][/doublepost]please someone help correct this
This is the correct way:
Code:
to close the run [player command "ban %player% Example"]
 
Status
Not open for further replies.