Moved player data and plugin updater (#5) from the chat plugin #6

Merged
NorbiPeti merged 18 commits from Norbi into master 2016-08-30 22:29:18 +00:00
3 changed files with 6 additions and 10 deletions
Showing only changes of commit cc45238034 - Show all commits

View file

@ -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() {

View file

@ -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;
}

View file

@ -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();