I am working on a ban gui and I have two commands /p (player name) and /ti (player name) (Ban time) (reason) when you do /p(player name) and click the reason instead of putting the inputted player name it puts <none>. Any ideas on how to fix this.
Main gui (/p Player name)
Time of ban code (/ti (player name) (Ban time) (reason))
Main gui (/p Player name)
Code:
command /p <player>:
trigger:
open virtual chest inventory with size 6 named "Ban" to player
format gui slot 20 of player with Book named "&bPing Spoof" to run:
execute player command "/ti %arg 1% Ping Spoof"
format gui slot 21 of player with Book named "&bKill Aura" to run:
execute player command "/ti %arg 1% Kill Aura"
format gui slot 22 of player with Book named "&bJesus Hacks" to run:
execute player command "/ti %arg 1% Jesus"
format gui slot 23 of player with Book named "&bAnti Afk" to run:
execute player command "/ti %arg 1% Anti Afk"
format gui slot 24 of player with Book named "&bXray" to run:
execute player command "/ti %arg 1% Xray"
format gui slot 29 of player with Book named "&bSpeed Hacks" to run:
execute player command "/ti %arg 1% Speed Hacks"
format gui slot 30 of player with Book named "&bChest Esp" to run:
execute player command "/ti %arg 1% Chest Esp"
format gui slot 31 of player with Book named "&bSpamming" to run:
execute player command "/ti %arg 1% Spamming"
format gui slot 32 of player with Book named "&bFly Hacks" to run:
execute player command "/ti %arg 1% Fly Hacks"
format gui slot 33 of player with Book named "&bGriefing" to run:
execute player command "/ti %arg 1% Griefing"
Time of ban code (/ti (player name) (Ban time) (reason))
Code:
command /ti <player> <text>:
trigger:
open virtual chest inventory with size 3 named "Ban Time" to player
format gui slot 11 of player with clock named "&b1 Week" to run:
execute player command "/tempban %arg 1% 1w You Have Been Banned By %player% For %arg 2%"
format gui slot 12 of player with clock named "&b2 weeks" to run:
execute player command "/tempban %arg 1% 2w You Have Been Banned By %player% For %arg 2%"
format gui slot 13 of player with clock named "&b3 Weeks" to run:
execute player command "/tempban %arg 1% 3w You Have Been Banned By %player% For %arg 2%"
format gui slot 14 of player with clock named "&b4 Weeks" to run:
execute player command "/tempban %arg 1% 4w You Have Been Banned By %player% For %arg 2%"
format gui slot 15 of player with clock named "&b5 Weeks" to run:
execute player command "/tempban %arg 1% 5w You Have Been Banned By %player% For %arg 2%"