From 425df32d01085d718bf2e7c74dc159a88a7d803c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Fri, 21 Oct 2022 12:57:41 +0200 Subject: [PATCH] Implement basic Spigot plugin structure --- .gitignore | 1 + .../wtf/beatrice/nounspicker/NounsPicker.java | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6b00d13..fb8c939 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ crashlytics.properties crashlytics-build.properties fabric.properties +*.iml diff --git a/src/main/java/wtf/beatrice/nounspicker/NounsPicker.java b/src/main/java/wtf/beatrice/nounspicker/NounsPicker.java index a82b5ee..2fd127e 100644 --- a/src/main/java/wtf/beatrice/nounspicker/NounsPicker.java +++ b/src/main/java/wtf/beatrice/nounspicker/NounsPicker.java @@ -1,9 +1,18 @@ package wtf.beatrice.nounspicker; -public class NounsPicker +import org.bukkit.plugin.PluginManager; +import org.bukkit.plugin.java.JavaPlugin; + +import java.util.logging.Level; + +public class NounsPicker extends JavaPlugin { - public static void main(String[] args) + private PluginManager pluginManager; + + @Override + public void onEnable() { - System.out.println("Hello world!"); + pluginManager = getServer().getPluginManager(); + } } \ No newline at end of file