1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Gui Ban system

Discussion in 'Skript' started by BotiiX, Jul 15, 2020.

Tags:
  1. BotiiX

    BotiiX Member

    Joined:
    Jul 14, 2020
    Messages:
    8
    Likes Received:
    0
    Hello! I have been making a GUI ban system for LiteBans, but I've faced an issue. The GUI works fine, but when I click the final selection, it doesn't ban the player that I've entered, it bans <none>. I looked into it, but because I'm new to Skript, I couldn't find the issue.

    I use TuSKe for the GUI.
    Here's a screenshot: https://gyazo.com/2ee51a6327f47ce876e0e2882e32eb20

    The code (sorry it's Hungarian):
    command /gban <Offlineplayer>:
    permission: atomcore.gban
    trigger:
    send "&aBan GUI megnyitva!"
    open virtual chest with size 1 named "&c%arg 1% &4kitiltása:" to player
    format gui slot 0 of player with red wool named "&cCsalás" to run:
    execute player command "/gban-csalas %arg 1%"

    command /gban-csalas <Offlineplayer>:
    permission: atomcore.gban
    trigger:
    open virtual chest with size 1 named "&4Csalás" to player
    format gui slot 3 of player with diamond boots named "Mozgás" to run:
    execute player command "/gban-mozgas %arg 1%"
    format gui slot 5 of player with wooden sword named "Csata" to run:
    execute player command "/gban-csata %arg 1%"

    command /gban-mozgas <Offlineplayer>:
    permission: atomcore.gban
    trigger:
    open virtual chest with size 1 named "&aMozgás" to player
    format gui slot 2 of player with stone named "&bAntiKnockback / Velocity" to run:
    execute player command "/tban %arg 1% 14d Csalás - MH-3"
    format gui slot 4 of player with feather named "&aFly" to run:
    execute player command "/ban %arg 1% Csalás - MH-1"
    format gui slot 6 of player with iron boots named "&7Speed" to run:
    execute player command "/tban %arg 1% 14d Csalás - MH-2"



    command /gban-csata <Offlineplayer>:
    permission: atomcore.gban
    trigger:
    open virtual chest with size 1 named "&bCsata" to player
    format gui slot 0 of player with diamond sword named "&cKillAura / AimBot / ForceField" to run:
    execute player command "/tban %arg 1% 7d Csalás - CH-1"
    format gui slot 4 of player with stick named "&aReach" to run:
    execute player command "/tban %arg 1% 7d Csalás - CH-2"
    format gui slot 6 of player with arrow named "&7Speed" to run:
    execute player command "/tban %arg 1% 14d Csalás - CH-3"

     
  2. Best Answer:
    Post #5 by Time4Games, Jul 31, 2020
  3. Gowixx

    Gowixx Active Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    4
    In your example nothing is formatted

    command /punsih <offlineplayer>
    permission: atomcore.punish
    trigger
    open vritual chest....


    your example looks all messed up
    --- Double Post Merged, Jul 20, 2020, Original Post Date: Jul 20, 2020 ---
    Wait it messed mine up too :emoji_frowning: Could you upload to hastebin.com?
     
  4. BotiiX

    BotiiX Member

    Joined:
    Jul 14, 2020
    Messages:
    8
    Likes Received:
    0
  5. Gowixx

    Gowixx Active Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    4
    hmm, interesting. Same thing happened to me I dont know.
     
  6. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    Try:

    Code (Text):
    1. command /gban <Offlineplayer>:
    2.     permission: atomcore.gban
    3.     trigger:
    4.         send "&aBan GUI megnyitva!"
    5.         open virtual chest with size 1 named "&c%arg 1% &4kitiltása:" to player
    6.         format gui slot 0 of player with red wool named "&cCsalás" to run player command "/gban-csalas %arg 1%"
    7.  
    8. command /gban-csalas <Offlineplayer>:
    9.     permission: atomcore.gban
    10.     trigger:
    11.         open virtual chest with size 1 named "&4Csalás" to player
    12.         format gui slot 3 of player with diamond boots named "Mozgás" to run player command "/gban-mozgas %arg 1%"
    13.         format gui slot 5 of player with wooden sword named "Csata" to run player command "/gban-csata %arg 1%"
    14.  
    15. command /gban-mozgas <Offlineplayer>:
    16.     permission: atomcore.gban
    17.     trigger:
    18.         open virtual chest with size 1 named "&aMozgás" to player
    19.         format gui slot 2 of player with stone named "&bAntiKnockback / Velocity" to run player command "/tban %arg 1% 14d Csalás - MH-3"
    20.         format gui slot 4 of player with feather named "&aFly" to run player command "/ban %arg 1% Csalás - MH-1"
    21.         format gui slot 6 of player with iron boots named "&7Speed" to run player command "/tban %arg 1% 14d Csalás - MH-2"
    22.        
    23.        
    24.  
    25. command /gban-csata <Offlineplayer>:
    26.     permission: atomcore.gban
    27.     trigger:
    28.         open virtual chest with size 1 named "&bCsata" to player
    29.         format gui slot 0 of player with diamond sword named "&cKillAura / AimBot / ForceField" to run player command "/tban %arg 1% 7d Csalás - CH-1"
    30.         format gui slot 4 of player with stick named "&aReach" to run player command "/tban %arg 1% 7d Csalás - CH-2"
    31.         format gui slot 6 of player with arrow named "&7Speed" to run player command "/tban %arg 1% 14d Csalás - CH-3"
    32.  
    Also when you want to sent a code use this: 20200731_225159.jpg
     
  7. BotiiX

    BotiiX Member

    Joined:
    Jul 14, 2020
    Messages:
    8
    Likes Received:
    0


    Thank you! It's working now! :emoji_grinning:
     
    • Friendly Friendly x 1
  8. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    Do you mind if i will use the code for my server?
    Actually never mind i dont understand the lunguage its in
     
  9. BotiiX

    BotiiX Member

    Joined:
    Jul 14, 2020
    Messages:
    8
    Likes Received:
    0
    you can use it I don't mind
     
  10. Time4Games

    Time4Games Well-Known Member

    Joined:
    Jul 25, 2020
    Messages:
    60
    Likes Received:
    1
    thanks, im too lazy to make one myself
     
Loading...