• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Custom Cmds Setuperm

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

MuntThee

Tree Puncher
#2
You can make a load %perms%
Markdown (GitHub flavored):
let %com% = %args%[1]
load %perms%
if varset(%perms%) = %false% then %perms% = array(0) - array(0)
if %p% in %perms% then message %p% already have the perm
if %p% in %perms% then exit
let %perms%[%p%] = %perms%[%p%] + array(%com%)
save %perms%
then in every single you want to have a perm
Markdown (GitHub flavored):
load %perms%
let %have% = %perms%[%p%]
if \"commandname\" notin %have% then message %p% §cYou do not have permission to use this command!
if \"commandname\" notin %have% then exit
#do stuff

but its more fun if you try it yourself
;)
and i do not know if this wil work!