Skip to content

BIG REFACTOR#17

Open
Mew2K wants to merge 10 commits into
Warzone:masterfrom
Mew2K:big-refactor
Open

BIG REFACTOR#17
Mew2K wants to merge 10 commits into
Warzone:masterfrom
Mew2K:big-refactor

Conversation

@Mew2K

@Mew2K Mew2K commented Nov 11, 2024

Copy link
Copy Markdown
Member
  • Removed sk89 dependency
  • Removed lombok dependency
  • Updated from Java 8 to Java 21
  • Updated plugin to be compatible with Minecraft 1.21.1
  • Implemented auto-save feature (worlds automatically save every 5 minutes)
  • Modified how command flags are treated; they now work more like Linux command flags.
  • Modified /worlds command to allow for better world filtering.
  • Copy-pasted some code from https://github.com/Mew2K/Scaffold/tree/mewmastercoder which includes the following key modifications:
  • The /archive command actually works now
  • Implemented /world alias to /open command
  • Switched /export to use file.io as the file-sharing site.

Mew2K and others added 10 commits November 11, 2024 01:27
- Removed sk89 dependency
- Removed lombok dependency
- Updated from Java 8 to Java 21
- Updated plugin to be compatible with Minecraft 1.21.1
- Implemented auto-save feature (worlds automatically save every 5 minutes)
- Modified how command flags are treated; they now work more like Linux command flags.
- Modified /worlds command to allow for better world filtering.
- Copy-pasted some code from https://github.com/Mew2K/Scaffold/tree/mewmastercoder which includes the following key modifications:
 - The /archive command actually works now
 - Implemented /world alias to /open command
 - Switched /export to use file.io as the file-sharing site.
Added other necessary gamerules and world saving on export.
- Better error handling message for /exporting an opened world
- When using /export, a temporary copy of the world is created. This is used to allow a world to be exported even when a player is already inside the world.
- Switch /export from file.io to gofile.io, since file.io's API no longer works after being acquired by Limewire.
- References the github commit on which Scaffold was built, making it easier to tell what version of Scaffold is being used at any given time.
- Fixes issue with /export command not working if it fails to save the world.
 - Open the target world if it is not currently open so that it can be saved
 - Notify user in-game if the world failed to save
- Temp file creation is now done inside a "temp" folder within the plugin directory, which is cleared every time the server starts.
- Zip file is also explicitly deleted now in the export function, which should've been done in the original implementation and is probably what caused this bug in the first place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants