Files
hytale-solar-cell-plugin/src/main/java/org/KaiFlo/SolarCell/SolarCellPlugin.java
Tim Kainz 5ed67d4e0d Updated Manifest and Package names
# Conflicts:
#	src/main/java/org/KaiFlo/SolarCell/ExamplePlugin.java
#	src/main/java/org/KaiFlo/SolarCell/SolarCellPlugin.java
#	src/main/java/org/example/plugin/ExamplePlugin.java
2026-02-05 22:02:17 +01:00

29 lines
994 B
Java

package org.KaiFlo.SolarCell;
import com.hypixel.hytale.logger.HytaleLogger;
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
import javax.annotation.Nonnull;
/**
* This class serves as the entrypoint for your plugin. Use the setup method to register into game registries or add
* event listeners.
*/
@SuppressWarnings("unused")
public class SolarCellPlugin extends JavaPlugin {
private static final HytaleLogger LOGGER = HytaleLogger.forEnclosingClass();
public SolarCellPlugin(@Nonnull JavaPluginInit init) {
super(init);
LOGGER.atInfo().log("Hello from " + this.getName() + " version " + this.getManifest().getVersion().toString());
}
@Override
protected void setup() {
LOGGER.atInfo().log("Setting up plugin " + this.getName());
this.getCommandRegistry().registerCommand(new ExampleCommand(this.getName(), this.getManifest().getVersion().toString()));
}
}