[FIX] Modify template for release Hytale#12
Closed
Avellea wants to merge 1 commit into
Closed
Conversation
jeanniardJ
reviewed
Jan 16, 2026
| super(init); | ||
| instance = this; | ||
| System.out.println("[TemplatePlugin] Plugin loaded!"); | ||
| getLogger().at(Level.INFO).log("[TemplatePlugin] Plugin loaded!"); |
There was a problem hiding this comment.
Why not use Hytale's logger 'private static final HytaleLogger LOGGER = HytaleLogger.forEnclosingClass();' instead of Java's?
Contributor
Author
There was a problem hiding this comment.
I was unaware Hytale provided a logger. I'll see how it is and (possibly) push changes. :)
Contributor
Author
There was a problem hiding this comment.
Why not use Hytale's logger 'private static final HytaleLogger LOGGER = HytaleLogger.forEnclosingClass();' instead of Java's?
Hytale's logger is just a wrapper for Google's flogger.
Either seems perfectly fine to use. I don't think I'll be pushing changes.
Contributor
Author
|
Closing this. Owner has wrote their own version of what I did. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR rewrites the main class to properly reflect the Hytale API as of 15/1/2026, as well as including an empty
libs/folder the end user can place theirHytaleServer.jarin.This also introduces two helper functions to be used for code clarity:
registerEvents()andregisterCommands(). Both are called insetup(). These two functions should be used to initialize your command and event handlers.