Skip to content

Commit 1efe98a

Browse files
authored
Merge pull request #3271 from Multiverse/fix/setspawn-save
Fix setspawn command not saving the updated location to file immediately
2 parents 29d3c0c + 9892428 commit 1efe98a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/mvplugins/multiverse/core/commands/SetSpawnCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ void onSetSpawnCommand(
6363

6464
worldManager.getLoadedWorld(location.getWorld())
6565
.peek(mvWorld -> mvWorld.setSpawnLocation(location)
66+
.flatMap(ignore -> worldManager.saveWorldsConfig())
6667
.onSuccess(ignore -> issuer.sendMessage(MVCorei18n.SETSPAWN_SUCCESS,
6768
Replace.WORLD.with(mvWorld.getName()),
6869
Replace.LOCATION.with(prettyLocation(location))))

0 commit comments

Comments
 (0)