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"
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"