Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package es.wiky.chat;
- import java.io.File;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- import es.wiky.chat.Eventos;
- public class Main extends JavaPlugin {
- private PluginManager Plugin = this.getServer().getPluginManager();
- public void onEnable(){
- System.out.println("Chat+ has been enabled");
- registrarCommandos();
- registrarEventos();
- File config = new File(getDataFolder() + File.separator + "config.yml");
- if(!config.exists()){
- getConfig().options().copyDefaults(true);
- saveConfig();
- }
- }
- public void onDisable(){
- System.out.println("Chat+ has been disabled");
- }
- private void registrarCommandos() {
- }
- private void registrarEventos() {
- Plugin.registerEvents(new Eventos(this), this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement