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

Hub Command(with /hub set)

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.

Null45

Coal Miner
#1
How does it work?:

Its a simple command that I made because Im bored.So you can set the hub of the server by running the command "/hub set"(You have to be OP to do this).If you want to come back to the hub you can simply type "/hub" in chat.

Any errors?Feel free to post it here!

cmd create hub Teleports you to the main Hub
cmd add hub if varset(%args%[1]) = %false% then goto 13
cmd add hub if %args%[1] = \"set\" then goto 5
cmd add hub message %p% §cInvalid Command
cmd add hub exit
cmd add hub let %st% = playerstatus(%p%)
cmd add hub let %opst% = %st%[\"op\"]
cmd add hub if %opst% = 0 then message %p% §cYou dont have the permission to use this command
cmd add hub if %opst% = 0 then exit
cmd add hub let %pos%[] = %x%
cmd add hub let %pos%[] = %y%
cmd add hub let %pos%[] = %z%
cmd add hub let %pos%[] = %yaw%
cmd add hub let %pos%[] = %pitch%
cmd add hub let %pos%[] = %level%
cmd add hub save %pos%
cmd add hub exit
cmd add hub load %pos%
cmd add hub if varset(%pos%) = %false% then message %p% §cThe Hub is not yet setted by an Admin.
cmd add hub if varset(%pos%) = %false% then exit
cmd add hub let %xx% = %pos%[0]
cmd add hub let %yy% = %pos%[1]
cmd add hub let %zz% = %pos%[2]
cmd add hub let %yaww% = %pos%[3]
cmd add hub let %pitchh% = %pos%[4]
cmd add hub let %world% = %pos%[5]
cmd add hub move %p% %world% %xx% %yy% %zz% [%yaw%[%pitchh%]]
cmd add hub message %p% §aWelcome to the Hub!
cmd add hub exit