From c01eaab12d0e7a17ce8a7bff6a3804e66a729c74 Mon Sep 17 00:00:00 2001 From: JRoy Date: Thu, 26 Dec 2019 14:16:54 -0500 Subject: [PATCH] Finish plugin setup --- build.gradle | 1 + .../io/github/jroy/pluginlibrary/PluginLibrary.java | 3 +-- .../jroy/pluginlibrary/ProxiedPluginLibrary.java | 11 +++++++++++ src/main/resources/bungee.yml | 4 ++++ src/main/resources/plugin.yml | 5 +++++ 5 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 src/main/java/io/github/jroy/pluginlibrary/ProxiedPluginLibrary.java create mode 100644 src/main/resources/bungee.yml create mode 100644 src/main/resources/plugin.yml diff --git a/build.gradle b/build.gradle index bad4d55..993f754 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,7 @@ repositories { dependencies { compileOnly "org.spigotmc:spigot-api:1.15.1-R0.1-SNAPSHOT" + compileOnly "net.md-5:bungeecord-api:1.15-SNAPSHOT" compile 'fr.minuskube.inv:smart-invs:1.2.7' compile 'co.aikar:taskchain-bukkit:3.7.2' compile 'org.apache.commons:commons-dbcp2:2.7.0' diff --git a/src/main/java/io/github/jroy/pluginlibrary/PluginLibrary.java b/src/main/java/io/github/jroy/pluginlibrary/PluginLibrary.java index 72e2717..eae8083 100644 --- a/src/main/java/io/github/jroy/pluginlibrary/PluginLibrary.java +++ b/src/main/java/io/github/jroy/pluginlibrary/PluginLibrary.java @@ -1,12 +1,11 @@ package io.github.jroy.pluginlibrary; -import org.bukkit.Bukkit; import org.bukkit.plugin.java.JavaPlugin; public class PluginLibrary extends JavaPlugin { @Override public void onEnable() { - Bukkit.getLogger().info("PluginLibrary has been injected into the classpath!"); + getLogger().info("PluginLibrary has been injected into the classpath!"); } } diff --git a/src/main/java/io/github/jroy/pluginlibrary/ProxiedPluginLibrary.java b/src/main/java/io/github/jroy/pluginlibrary/ProxiedPluginLibrary.java new file mode 100644 index 0000000..997cd0b --- /dev/null +++ b/src/main/java/io/github/jroy/pluginlibrary/ProxiedPluginLibrary.java @@ -0,0 +1,11 @@ +package io.github.jroy.pluginlibrary; + +import net.md_5.bungee.api.plugin.Plugin; + +public class ProxiedPluginLibrary extends Plugin { + + @Override + public void onEnable() { + getLogger().info("PluginLibrary has been injected into the classpath!"); + } +} diff --git a/src/main/resources/bungee.yml b/src/main/resources/bungee.yml new file mode 100644 index 0000000..4243f85 --- /dev/null +++ b/src/main/resources/bungee.yml @@ -0,0 +1,4 @@ +name: PluginLibrary +author: JRoy +version: 0.1 +main: io.github.jroy.pluginlibrary.ProxiedPluginLibrary \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..51bb154 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,5 @@ +name: PluginLibrary +author: JRoy +version: 0.1 +api-version: 1.14 +main: io.github.jroy.pluginlibrary.PluginLibrary \ No newline at end of file