Skip to content

[FIX] Modify template for release Hytale#12

Closed
Avellea wants to merge 1 commit into
realBritakee:mainfrom
Avellea:main
Closed

[FIX] Modify template for release Hytale#12
Avellea wants to merge 1 commit into
realBritakee:mainfrom
Avellea:main

Conversation

@Avellea

@Avellea Avellea commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

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 their HytaleServer.jar in.

This also introduces two helper functions to be used for code clarity: registerEvents() and registerCommands(). Both are called in setup(). These two functions should be used to initialize your command and event handlers.

@MacLove13 MacLove13 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

super(init);
instance = this;
System.out.println("[TemplatePlugin] Plugin loaded!");
getLogger().at(Level.INFO).log("[TemplatePlugin] Plugin loaded!");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not use Hytale's logger 'private static final HytaleLogger LOGGER = HytaleLogger.forEnclosingClass();' instead of Java's?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was unaware Hytale provided a logger. I'll see how it is and (possibly) push changes. :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

@Avellea

Avellea commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing this. Owner has wrote their own version of what I did.

@Avellea Avellea closed this Jan 21, 2026
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.

3 participants