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 java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import buttondevteam.bucket.core.CoreSubPlugin;
public class MainPlugin extends JavaPlugin { public class MainPlugin extends JavaPlugin {
public static MainPlugin Instance; public static MainPlugin Instance;
private PluginDescriptionFile pdfFile; private PluginDescriptionFile pdfFile;
private Logger logger; private Logger logger;
private CoreSubPlugin playerSubPlugin;
public void onEnable() { public void onEnable() {
// Logs "Plugin Enabled", registers commands // Logs "Plugin Enabled", registers commands
Instance = this; Instance = this;
pdfFile = getDescription(); pdfFile = getDescription();
logger = getLogger(); 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() + ")."); logger.info(pdfFile.getName() + " has been Enabled (V." + pdfFile.getVersion() + ").");
} Bukkit.getPluginManager().registerEvents(new PlayerListener(), this);
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
} }
} }

View file

@ -1,4 +1,4 @@
package buttondevteam.bucket.core; package buttondevteam.bucket;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority; 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.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
@ -17,8 +17,6 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonParser; import com.google.gson.JsonParser;
import buttondevteam.bucket.MainPlugin;
public final class TBMCCoreAPI { public final class TBMCCoreAPI {
/** /**
* Updates or installs the specified plugin. The plugin must use Maven. * 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.File;
import java.io.IOException; 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.Event;
import org.bukkit.event.HandlerList; 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.Event;
import org.bukkit.event.HandlerList; 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.configuration.file.YamlConfiguration;
import org.bukkit.event.Event; 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.Event;
import org.bukkit.event.HandlerList; 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.configuration.file.YamlConfiguration;
import org.bukkit.event.Event; import org.bukkit.event.Event;