Skip to content

Conversation

@paaulhier
Copy link
Contributor


  • Adding an option into the config.yml file to disable the adventure game mode on archived worlds

See #286

Please note: we will close your Pull Request without comment if you do not check the box above and provide ALL
requested information.

@thomasmny
Copy link
Owner

Looks good so far.
However, we could also give players the option to set which gamemode players should be put into as well:

  • achive-gamemode (defaults to adventure)
  • archive-set-gamemode (defaults to true)

@paaulhier
Copy link
Contributor Author

That's actually a good suggestion. Will implement it today afternoon

@paaulhier
Copy link
Contributor Author

Implemented it now, may you check again, please?

Copy link
Owner

@thomasmny thomasmny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All in all very good, just a few nitpicks


private void setSpectatorMode(Player player) {
player.setGameMode(GameMode.ADVENTURE);
// Checking if the game mode should be set to adventure mode on archive worlds
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the comment, code should be self-explanatory

@thomasmny thomasmny merged commit 4ccb48b into thomasmny:master Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants