Hello! I'm making a granting ranks GUI and I am not too sure how to make a confirmation page. So like when you click a rank it shows a red or green button to confirm. here is a part of the code:
Code:
command /SetRank1 [<offline player>]:
aliases: /SR1 , /sk1
permission: system.rank
permission message: &1SetRank> &7No Permission
trigger:
if arg-1 is not set:
send "&4"
else:
open chest with 6 rows named "&cStaff Ranks" to player
wait 4 tick
format slot 0 of player with paper named "&3&lBack" to run [make player execute command "grant %arg-1%"]
format slot 1 of player with red wool named "&4&lOwner Group" with lore "&9Rank players to Owner" to close then run [make player execute command "pex user %arg-1% group set Owner"]
format slot 2 of player with pink wool named "&c&lManager Group" with lore "&9Rank players to Manager" to close then run [make player execute command "pex user %arg-1% group set Manager"]
format slot 3 of player with light blue wool named "&bDeveloper" with lore "&9Rank players to Developer." to close then run [make player execute command "pex user %arg-1% group set Developer"]
format slot 4 of player with purple wool named "&cSR.Admin" with lore "&9Rank players to SR.Admin." to close then run [make player execute command "pex user %arg-1% group set sr.admin"]
format slot 5 of player with light gray wool named "&cAdmin Group" with lore "&9Rank players to Admin." to close then run [make player execute command "pex user %arg-1% group set Admin"]
format slot 6 of player with yellow wool named "&eModerator Group" with lore "&9Rank players to Moderator." to close then run [make player execute command "pex user %arg-1% group set Moderator"]
format slot 7 of player with lime wool named "&2&lHead Builder Group" with lore "&9Rank players to head Builder." to close then run [make player execute command "pex user %arg-1% group set Head-Builder"]
format slot 8 of player with green wool named "&eBuilder Group" with lore "&9Rank players to Builder." to close then run [make player execute command "pex user %arg-1% group set Builder"]
format slot 9 of player with lime wool named "&eHelper Group" with lore "&9Rank players to Helper." to close then run [make player execute command "pex user %arg-1% group set helper"]
format slot 10 of player with white wool named "&eTrainee Group" with lore "&9Rank players to Trainee." to close then run [make player execute command "pex user %arg-1% group set Trainee"]