• 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.

Run a commmad in certain world

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.
#1
Hello
Want to run a certain command Only I'm certain world's then simple use this for any command that you want to be able only on certain world


Am using as a sample
/p = plots command
And
/f = faction command

cmd create p
cmd add p if %level% != "plots" then message %p% [Info] You must be in Plots world to run this command!
cmd add p if %level% != "plots" then exit
cmd add p let %command% = join(%args%[1+], " ")
cmd add p /plot %command%


cmd create f
cmd add f if %level% != "world" then message %p% [Info] You must be in Faction world to run this command!
cmd add f if %level% != "world" then exit
cmd add f let %command% = join(%args%[1+], " ")
cmd add f /f %command%


Note (make sure to use the level name from the world
Otherwise the command will not work if your not using the right level name for the world you want to use)
 
#4
Hello
Want to run a certain command Only I'm certain world's then simple use this for any command that you want to be able only on certain world


Am using as a sample
/p = plots command
And
/f = faction command

cmd create p
cmd add p if %level% != "plots" then message %p% [Info] You must be in Plots world to run this command!
cmd add p if %level% != "plots" then exit
cmd add p let %command% = join(%args%[1+], " ")
cmd add p /plot %command%


cmd create f
cmd add f if %level% != "world" then message %p% [Info] You must be in Faction world to run this command!
cmd add f if %level% != "world" then exit
cmd add f let %command% = join(%args%[1+], " ")
cmd add f /f %command%


Note (make sure to use the level name from the world
Otherwise the command will not work if your not using the right level name for the world you want to use)
Cool tutorial :)
 
#5
Hello
Want to run a certain command Only I'm certain world's then simple use this for any command that you want to be able only on certain world


Am using as a sample
/p = plots command
And
/f = faction command

cmd create p
cmd add p if %level% != "plots" then message %p% [Info] You must be in Plots world to run this command!
cmd add p if %level% != "plots" then exit
cmd add p let %command% = join(%args%[1+], " ")
cmd add p /plot %command%


cmd create f
cmd add f if %level% != "world" then message %p% [Info] You must be in Faction world to run this command!
cmd add f if %level% != "world" then exit
cmd add f let %command% = join(%args%[1+], " ")
cmd add f /f %command%


Note (make sure to use the level name from the world
Otherwise the command will not work if your not using the right level name for the world you want to use)
Wow you’ve been killing it lately!