Solved Gui Ban system

  • 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.

BotiiX

New Member
Jul 14, 2020
9
0
1
21
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"
 
In your example nothing is formatted

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


your example looks all messed up
[doublepost=1595262963,1595262918][/doublepost]Wait it messed mine up too :emoji_frowning: Could you upload to hastebin.com?
 
Try:

Code:
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 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 player command "/gban-mozgas %arg 1%"
        format gui slot 5 of player with wooden sword named "Csata" to run 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 player command "/tban %arg 1% 14d Csalás - MH-3"
        format gui slot 4 of player with feather named "&aFly" to run player command "/ban %arg 1% Csalás - MH-1"
        format gui slot 6 of player with iron boots named "&7Speed" to run 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 player command "/tban %arg 1% 7d Csalás - CH-1"
        format gui slot 4 of player with stick named "&aReach" to run player command "/tban %arg 1% 7d Csalás - CH-2"
        format gui slot 6 of player with arrow named "&7Speed" to run player command "/tban %arg 1% 14d Csalás - CH-3"

Also when you want to sent a code use this:
20200731_225159.jpg
 
Try:

Code:
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 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 player command "/gban-mozgas %arg 1%"
        format gui slot 5 of player with wooden sword named "Csata" to run 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 player command "/tban %arg 1% 14d Csalás - MH-3"
        format gui slot 4 of player with feather named "&aFly" to run player command "/ban %arg 1% Csalás - MH-1"
        format gui slot 6 of player with iron boots named "&7Speed" to run 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 player command "/tban %arg 1% 7d Csalás - CH-1"
        format gui slot 4 of player with stick named "&aReach" to run player command "/tban %arg 1% 7d Csalás - CH-2"
        format gui slot 6 of player with arrow named "&7Speed" to run player command "/tban %arg 1% 14d Csalás - CH-3"

Also when you want to sent a code use this:View attachment 5165



Thank you! It's working now! :emoji_grinning:
 
Status
Not open for further replies.