Skip to content

Conversation

@Avellea
Copy link
Contributor

@Avellea Avellea commented Jan 15, 2026

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.

Copy link

@MacLove13 MacLove13 left a comment

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!");

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
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
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
Copy link
Contributor Author

Avellea commented Jan 21, 2026

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