alright, so I need to have a skript that removes a players staff rank, and replaces it with the staffAFK rank. So I have /staffafk, and /staffunafk. Only problem is I can only use 1 permission per command to give back and take away (because there are many staff ranks). Is there anything you can think of that would allow me to do this?
Pluigns being used in this are Skript, PermissionEx, nte tags.
Current code:
so because there are other ranks, like mods and more, how can I set it up for them too with the same command, but a different output from that other command with the different permission
Pluigns being used in this are Skript, PermissionEx, nte tags.
Current code:
code_language.skript:
## Reecepbcups
options:
NoPermission: &cYou don't have permission to use this command.
command /staffafk:
permission: staffafk.helper.use
permission message: {@NoPermission}
aliases: afkstaff
trigger:
execute console command "/pex user %player% group remove Helper"
execute console command "/pex user %player% group add StaffAFK"
execute console command "/nte reload"
command /unStaffAFK:
permission: unafk.helper.use
permission message: {@NoPermission}
aliases: staffunafk
trigger:
execute console command "/pex user %player% group remove StaffAFK"
execute console command "/pex user %player% group add helper"
execute console command "/nte reload"
so because there are other ranks, like mods and more, how can I set it up for them too with the same command, but a different output from that other command with the different permission