Titourdt

MainClass

Feb 21st, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. package fr.vitalys.bukkit;
  2.  
  3.  
  4. import org.bukkit.Bukkit;
  5. import org.bukkit.plugin.PluginManager;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class MainClass extends JavaPlugin{
  9.    
  10.     public EventClass ec;
  11.    
  12.     public void onEnable(){
  13.        
  14.             this.ec = new EventClass(this);
  15.        
  16.         getConfig().options().copyDefaults(false);
  17.         this.saveConfig();
  18.        
  19.         PluginManager pm = Bukkit.getServer().getPluginManager();
  20.         pm.registerEvents(ec, this);
  21.        
  22.        
  23.         System.out.println("Ok");
  24.        
  25.     }
  26.     public void onDisable(){
  27.        
  28.     }
  29. }
Add Comment
Please, Sign In to add comment