29 lines
671 B
Java
29 lines
671 B
Java
|
|
package dev.hytalemodding;
|
||
|
|
|
||
|
|
import com.hypixel.hytale.server.core.plugin.JavaPlugin;
|
||
|
|
import com.hypixel.hytale.server.core.plugin.JavaPluginInit;
|
||
|
|
import dev.hytalemodding.commands.ExampleCommand;
|
||
|
|
|
||
|
|
import javax.annotation.Nonnull;
|
||
|
|
|
||
|
|
public class ExamplePlugin extends JavaPlugin {
|
||
|
|
|
||
|
|
public ExamplePlugin(@Nonnull JavaPluginInit init) {
|
||
|
|
super(init);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void setup() {
|
||
|
|
this.getCommandRegistry().registerCommand(new ExampleCommand("example", "An example command"));
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void start() {
|
||
|
|
super.start();
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
protected void shutdown() {
|
||
|
|
super.shutdown();
|
||
|
|
}
|
||
|
|
}
|