Moved files

This commit is contained in:
Norbi Peti 2016-10-23 02:12:11 +02:00
parent cf4fcf420d
commit 7387013788
9 changed files with 10 additions and 33 deletions

View file

@ -2,45 +2,24 @@ package buttondevteam.bucket;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import buttondevteam.bucket.core.CoreSubPlugin;
public class MainPlugin extends JavaPlugin {
public static MainPlugin Instance;
private PluginDescriptionFile pdfFile;
private Logger logger;
private CoreSubPlugin playerSubPlugin;
public void onEnable() {
// Logs "Plugin Enabled", registers commands
Instance = this;
pdfFile = getDescription();
logger = getLogger();
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion() + ").");
registerSubPlugins();
registerCommands();
registerEvents();
logger.info(pdfFile.getName() + " has been Enabled (V." + pdfFile.getVersion() + ").");
}
private void registerSubPlugins() {
playerSubPlugin = new CoreSubPlugin(this);
playerSubPlugin.register();
}
private void registerCommands() {
// TODO Auto-generated method stub
}
private void registerEvents() {
// TODO Auto-generated method stub
Bukkit.getPluginManager().registerEvents(new PlayerListener(), this);
}
}

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import java.io.File;
import java.io.FileNotFoundException;
@ -17,8 +17,6 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import buttondevteam.bucket.MainPlugin;
public final class TBMCCoreAPI {
/**
* Updates or installs the specified plugin. The plugin must use Maven.

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import java.io.File;
import java.io.IOException;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.event.Event;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core;
package buttondevteam.bucket;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.event.Event;