Moved files
This commit is contained in:
parent
cf4fcf420d
commit
7387013788
9 changed files with 10 additions and 33 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.event.Event;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package buttondevteam.bucket.core;
|
||||
package buttondevteam.bucket;
|
||||
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.event.Event;
|
||||
|
|
Loading…
Reference in a new issue