feat(01): plugin manifest and entry class
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package com.mythlane.gravityflip;
|
||||
|
||||
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
|
||||
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
* Entry point for the Gravity Flip plugin.
|
||||
*
|
||||
* <p>Extends {@link JavaPlugin} from the resolved Hytale Server API
|
||||
* ({@code com.hypixel.hytale:Server:2026.03.26-89796e57b}). The lifecycle
|
||||
* hooks in this API version are {@code setup()} and {@code shutdown()}
|
||||
* (NOT {@code onEnable()} / {@code onDisable()}, which belong to older
|
||||
* docs). See {@code .planning/phases/01-scaffold-load/JAVAPLUGIN_RESOLUTION.md}
|
||||
* for the empirical resolution.
|
||||
*/
|
||||
public class GravityFlipPlugin extends JavaPlugin {
|
||||
|
||||
public GravityFlipPlugin(JavaPluginInit init) {
|
||||
super(init);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setup() {
|
||||
getLogger().at(Level.INFO).log("Gravity Flip enabled");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void shutdown() {
|
||||
getLogger().at(Level.INFO).log("Gravity Flip disabled");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"group": "com.mythlane",
|
||||
"name": "hytale-gravity-flip",
|
||||
"version": "0.1.0",
|
||||
"serverVersion": "2026.03.26-89796e57b",
|
||||
"description": "Inverted gravity zones defined via an in-game wand.",
|
||||
"authors": [
|
||||
{ "name": "Mythlane" }
|
||||
],
|
||||
"main": "com.mythlane.gravityflip.GravityFlipPlugin"
|
||||
}
|
||||
Reference in New Issue
Block a user