From 3a3f402812ecf070f1bbced3eead0b0598be28e0 Mon Sep 17 00:00:00 2001 From: speedxx <43330808+speedxx@users.noreply.github.com> Date: Mon, 13 Jul 2020 22:39:30 -0400 Subject: [PATCH] spigot spigot --- TFGuilds.iml | 12 +++++------ pom.xml | 20 ++++++------------- .../me/totalfreedom/tfguilds/TFGuilds.java | 11 +++++++--- src/main/resources/plugin.yml | 2 +- 4 files changed, 20 insertions(+), 25 deletions(-) diff --git a/TFGuilds.iml b/TFGuilds.iml index 8955aea..391e646 100644 --- a/TFGuilds.iml +++ b/TFGuilds.iml @@ -21,22 +21,20 @@ - - - + + - - + + + - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3d12df7..c61db63 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - TFGuilds + me.totalfreedom TFGuilds - 0.2 + 0.2.1 jar TFGuilds @@ -44,14 +44,6 @@ - - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 - - C:\Users\Jax\Desktop\STUFF\116test\plugins - - @@ -67,8 +59,8 @@ https://jitpack.io - bukkit-repo - http://repo.bukkit.org/content/groups/public/ + spigotmc-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ sonatype @@ -78,8 +70,8 @@ - org.bukkit - bukkit + org.spigotmc + spigot-api 1.16.1-R0.1-SNAPSHOT provided diff --git a/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java b/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java index f5c6ceb..1f4c20c 100644 --- a/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java +++ b/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java @@ -29,9 +29,7 @@ public final class TFGuilds extends JavaPlugin config = new Config("config.yml"); guilds = new Config("guilds.yml"); bridge = new TFMBridge(); - this.getCommand("guild").setExecutor(new GuildCommand()); - this.getCommand("guildchat").setExecutor(new GuildChatCommand()); - this.getCommand("tfguilds").setExecutor(new TFGuildsCommand()); + loadCommands(); loadListeners(); GLog.info("Enabled " + this.getDescription().getFullName()); } @@ -45,6 +43,13 @@ public final class TFGuilds extends JavaPlugin GLog.info("Disabled " + this.getDescription().getFullName()); } + private void loadCommands() + { + this.getCommand("guild").setExecutor(new GuildCommand()); + this.getCommand("guildchat").setExecutor(new GuildChatCommand()); + this.getCommand("tfguilds").setExecutor(new TFGuildsCommand()); + } + private void loadListeners() { PluginManager manager = this.getServer().getPluginManager(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 786b26d..d9c76af 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: TFGuilds version: ${project.version} main: me.totalfreedom.tfguilds.TFGuilds -api-version: 1.13 +api-version: 1.16 softdepend: [TotalFreedomMod] authors: [speed, super] description: A guilds plugin for the TotalFreedom server.