Files
src
build.gradle
settings.gradle
Code
11 837
src/main/java/de/kodari/plotmenu/PlotMenuPlugin.java
package de.kodari.plotmenu;
import com.plotsquared.core.PlotAPI;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;
public final class PlotMenuPlugin extends JavaPlugin {
private PlotAPI plotAPI;
private PriceManager priceManager;
private FlagService flagService;
private InputManager inputManager;
private MenuListener menuListener;
@Override
public void onEnable() {
saveDefaultConfig();
this.plotAPI = new PlotAPI();
this.priceManager = new PriceManager(this);
this.flagService = new FlagService(this);
this.inputManager = new InputManager(this);
this.menuListener = new MenuListener(this);
getServer().getPluginManager().registerEvents(menuListener, this);
getServer().getPluginManager().registerEvents(inputManager, this);
PluginCommand command = getCommand("plotmenu");
if (command != null) {
command.setExecutor(new PlotMenuCommand(this));
}
}
public PlotAPI getPlotAPI() {
return plotAPI;
}
public PriceManager getPriceManager() {
return priceManager;
}
public FlagService getFlagService() {
return flagService;
}
public InputManager getInputManager() {
return inputManager;
}
public MenuListener getMenuListener() {
return menuListener;
}
}