Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.vitalys.bukkit;
- import org.bukkit.Bukkit;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class MainClass extends JavaPlugin{
- public EventClass ec;
- public void onEnable(){
- this.ec = new EventClass(this);
- getConfig().options().copyDefaults(false);
- this.saveConfig();
- PluginManager pm = Bukkit.getServer().getPluginManager();
- pm.registerEvents(ec, this);
- System.out.println("Ok");
- }
- public void onDisable(){
- }
- }
Add Comment
Please, Sign In to add comment