-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add /mv spawn tp
and /mv spawn set
#3057
base: MV5
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think dont need to change the command format. /mv spawn
should be teleport to the world's spawn. Then i think /mv setspawn
is fine? dont need to change to /mv spawn set
LoadedMultiverseWorld world = worldManager.getLoadedWorld(player.getWorld().getName()).getOrNull(); | ||
|
||
// Teleport the player | ||
safetyTeleporter.teleportSafely(issuer.getIssuer(), player, world.getSpawnLocation()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to check if teleport fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do I go about doing this? Using .toAttempt().onFailiure()
causes the server to crash
Renamed
/mvspawn
to/mv spawn tp
and/mvsetspawn
to/mv spawn set