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