Skip to content

Plugin Development

This section covers everything you need to know about creating plugins for the Hytale dedicated server.

Plugins are Java JAR files that extend the Hytale server’s functionality. They allow you to:

  • Add custom game mechanics
  • Create new commands
  • Subscribe to game events
  • Implement custom permissions
  • Schedule and manage tasks
  1. Plugin System - Learn about plugin structure, manifest files, and lifecycle hooks
  2. Event System - Subscribe to and create custom events
  3. Command System - Create custom server commands
  4. Permissions - Implement permission-based access control
  5. Task Scheduling - Schedule and manage asynchronous tasks
Plugin JAR
├── manifest.json - Plugin metadata and dependencies
├── com/example/MyPlugin - Main plugin class
└── resources/ - Assets and configuration
package com.example;
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
import java.util.logging.Level;
public class MyPlugin extends JavaPlugin {
public MyPlugin(JavaPluginInit init) {
super(init);
}
@Override
protected void setup() {
getLogger().at(Level.INFO).log("Plugin setup!");
}
@Override
protected void start() {
getLogger().at(Level.INFO).log("Plugin started!");
}
@Override
protected void shutdown() {
getLogger().at(Level.INFO).log("Plugin shutting down!");
}
}
MethodDescription
setup()Called during server initialization. Register components, commands, and events here.
start()Called after all plugins are set up. Start background tasks here.
shutdown()Called when the server is stopping. Clean up resources here.