Minetopia-COMMANDS, and RP-COMMANDS.

Zxrsaer

Tree Puncher
#1
How to use: Get the group "BUILDER" not "builder" and then you can get the permission to use it on every plot.

How to create an plot? With the land protection plugin. Create an area and then there is an lock for everyone, but people with an key with the plot number can open chests, doors etc.. ID FOR KEYS: 131 (/give (player) 131 {display:{Name:NAMEPLOT}}




cmd create touch
cmd add touch %xx% = %args%[4]
cmd add touch %yy% = %args%[5]
cmd add touch %zz% = %args%[6]
cmd add touch %inf% = blockinfo(%level%, %xx%, %yy%, %zz%)
cmd add touch %h% = playerhand(%p%)
cmd add touch %id% = %h%[\"id\"]
cmd add touch %j% = join(%args%[1+], \" \")
cmd add touch #/cmd run ANOTHER_MADCOMMAND %j%
cmd add touch %name% = %h%[\"name\"]
cmd add touch %gr% = playergroup(%p%)
cmd add touch %allow% = array(\"BUILDER\")
cmd add touch if %gr% in %allow% then exit
cmd add touch if %id% != 131 then cancel
cmd add touch if %id% != 131 then exit
cmd add touch if \" \" notin %name% then goto 50
cmd add touch %spl% = split(%name%, \" \")
cmd add touch if varset(%args%[2]) = %true% then cancel
cmd add touch if varset(%args%[3]) = %true% then exit
cmd add touch %name% = %spl%[0]
cmd add touch %perm% = %spl%[1]

cmd edit touch 49 #49
cmd add touch %area% = areaname(%level%, %xx%, %yy%, %zz%)
cmd add touch if varset(%area%) = %false% then cancel
cmd add touch if varset(%area%) = %false% then exit
cmd add touch if %area% != %name% then cancel
cmd add touch if %area% != %name% then exit
cmd add touch load %prefix%
cmd add touch if varset(%prefix%[%p%]) = %false% then %%prefix%[%p%] = \"\"
cmd add touch %mypr% = %prefix%[%p%]
cmd add touch if varset(%perm%) = %false% then exit
cmd add touch if %perm% notin %mypr% then cancel

cmd create setprefix
cmd add setprefix load %prefix%
cmd add setprefix if varset(%args%[1]) = %false% then exit
cmd add setprefix %s% = playerstatus(%p%)
cmd add setprefix if %s%[\"op\"] = %false% then exit
cmd add setprefix %a% = %args%[1]
cmd add setprefix %prefix%[%p%] = %a%
cmd add setprefix save %prefix%
cmd add setprefix /setprefix %a%