Alot of you probably know this mini code but for the people that don’t know, this is for you! Make sure to change the ranks in the array that matches up to your server and that you want access to your selected command.
/cmd create command
/cmd edit command 1 let %rank% = array(\”Member\”, \”Hero\”, \”VIP\”, \”Legend\”, \”Superior\”)
/cmd edit command 2 let %allow% = playergroup(%p%)
/cmd edit command 3 if %allow% in %rank% then goto 6
/cmd edit command 4 message %p% §cYou don’t have permission to use this command.
/cmd edit command 5 exit
/cmd edit command 6 (This line will be the start of your command that you want the groups in the array to have access to)
/cmd create command
/cmd edit command 1 let %rank% = array(\”Member\”, \”Hero\”, \”VIP\”, \”Legend\”, \”Superior\”)
/cmd edit command 2 let %allow% = playergroup(%p%)
/cmd edit command 3 if %allow% in %rank% then goto 6
/cmd edit command 4 message %p% §cYou don’t have permission to use this command.
/cmd edit command 5 exit
/cmd edit command 6 (This line will be the start of your command that you want the groups in the array to have access to)