From cc45238034a1f9f4754d6fd7f0de88de9bf90f1f Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 17 Jul 2016 00:19:02 +0200 Subject: [PATCH] Renamed to CoreSubPlugin --- src/buttondevteam/MainPlugin.java | 6 +++--- src/buttondevteam/core/player/CoreSubPlugin.java | 6 +++--- src/buttondevteam/core/player/TBMCPlayerAddEvent.java | 4 ---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/buttondevteam/MainPlugin.java b/src/buttondevteam/MainPlugin.java index 8149cd8..2f48506 100644 --- a/src/buttondevteam/MainPlugin.java +++ b/src/buttondevteam/MainPlugin.java @@ -6,13 +6,13 @@ import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.java.JavaPlugin; import buttondevteam.alisolarflare.aliarrow.AliArrowSubPlugin; -import buttondevteam.core.player.PlayerSubPlugin; +import buttondevteam.core.player.CoreSubPlugin; public class MainPlugin extends JavaPlugin { private PluginDescriptionFile pdfFile; private Logger logger; private AliArrowSubPlugin aliArrowSubPlugin; - private PlayerSubPlugin playerSubPlugin; + private CoreSubPlugin playerSubPlugin; public void onEnable(){ //Logs "Plugin Enabled", registers commands @@ -29,7 +29,7 @@ public class MainPlugin extends JavaPlugin { private void registerSubPlugins() { aliArrowSubPlugin = new AliArrowSubPlugin(this); aliArrowSubPlugin.register(); - playerSubPlugin = new PlayerSubPlugin(this); + playerSubPlugin = new CoreSubPlugin(this); playerSubPlugin.register(); } private void registerCommands() { diff --git a/src/buttondevteam/core/player/CoreSubPlugin.java b/src/buttondevteam/core/player/CoreSubPlugin.java index a80ebfd..ba2afd5 100644 --- a/src/buttondevteam/core/player/CoreSubPlugin.java +++ b/src/buttondevteam/core/player/CoreSubPlugin.java @@ -2,10 +2,10 @@ package buttondevteam.core.player; import org.bukkit.plugin.Plugin; -public class PlayerSubPlugin { - public static Plugin plugin; +public class CoreSubPlugin { + public Plugin plugin; - public PlayerSubPlugin(Plugin plugin) { + public CoreSubPlugin(Plugin plugin) { this.plugin = plugin; } diff --git a/src/buttondevteam/core/player/TBMCPlayerAddEvent.java b/src/buttondevteam/core/player/TBMCPlayerAddEvent.java index 9d5bfb6..e7b4f75 100644 --- a/src/buttondevteam/core/player/TBMCPlayerAddEvent.java +++ b/src/buttondevteam/core/player/TBMCPlayerAddEvent.java @@ -1,11 +1,7 @@ package buttondevteam.core.player; -import java.util.UUID; - -import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; -import org.yaml.snakeyaml.Yaml; public class TBMCPlayerAddEvent extends Event { private static final HandlerList handlers = new HandlerList();