Recent Discussions

Trying to direct players to /spawn of each world, and /lobby to go to main spawn world. How?

Open in Discord
Unanswered
Barbary Lion posted this in #questions
24 messages
0 views
Barbary LionOP
I know it has something to do with aliases, however I’m still learning a lot from scratch, including the proper coding/configuration. Can anyone instruct or direct me to where/how I can do this? I am aiming to make it so that players in WORLDA do /spawn and end up in WORLDA spawn…WORLDB ends up in WORLDB spawn… and then to get to the SPAWNWORLD they have to do /hub or /lobby. Thanks in advance!
to be clear, when the player runs /spawn you want the game to actually run /mv spawn, and when they run hub you want them to teleport to essentials spawn?

If this is the case, and the players have permission to run /mv spawn and /essentials:spawn, then you go to commands.yml in the root of your server, and add the following aliases in the correct place Be sure to use spaces and not tabs when indenting
aliases:
  spawn:
  - mv spawn
  hub:
  - essentials:spawn
 

you can paste the contents of the file in an online [YAML validator](https://yamlchecker.com/) before saving changes if you're not super familiar with them.

After this, restart your server or run /reload commands to load the changes
Barbary LionOP
thank you for this help. Do you know which permissions is it to be able to allow default player to just be able to do /mv spawn (or /spawn when aliases added)
Barbary LionOP
so this is what I've done, and now /spawn leads to me the worlds spawn, and /lobby (instead of hub) does not work.
image.png
i have no way to get to the servers main spawn
Barbary LionOP
Basically for clarity, i want some way for players to do /spawn that will lead them to the spawn of each world, and then /lobby to get to the main lobby world that everyone should be in when they first join/rejoin the server.
So, it is my impression that the multiverse spawn command part works?
the permission node for that is multiverse.core.spawn.self
for essentials, it is essentials.spawn
plugin documentation typically has a list of permission nodes and what they’re for
i have to go but ill be abck
@Phillapple So, it is my impression that the multiverse spawn command part works?
Barbary LionOP
yeah the /spawn part does work, where when i do it, i go to that worlds spawn. However when I set the alias for /lobby that ALSO takes me to tyhat worlds spawn, instead of the spawn world.
i recommend using a warp instead of the spawn command, then
set the warp in the place the lobby to be using /setwarp <name>
(remember it saves your head position too)
(so if you're looking down people teleported will be looking down)
or, if the lobby is in the spawn point of that world you can link lobby to mvtp <worldname>
Barbary LionOP
I appreciate your help. the warp was the best option that works, now when I do /spawn in any world, it takes me to that worlds spawn. /lobby now does /warp lobby to go to the main spawn world.....HOWEVER now when I do /lobby i am going like a few blocks away from the intended spawnpoint xD oh boyyyyy
Another issue I noticed is that whenever I/player disconnects from the server in any world, they are going back to the SPAWN world by default as intended..... but not at that EXACT block/spot i want.
Barbary LionOP
ahh... it looks like when im on a different world, and I do /lobby, it takes me back to the spawn world, but to the last location that I was in in the spawn world... not ideal.
Barbary LionOP
turns out /mvinv toggle last_location affects every world instead of per world
Barbary LionOP
AHA. Finally found something on reddit that works. a comment on this thread helped me with my last location issue, wanted to share it here for anyone else struggling with similar issues. https://www.reddit.com/r/admincraft/comments/phgfhy/turning_on_last_location_in_multiverse_for/
!solved
Loading...