Advertisement
Guest User

Untitled

a guest
May 31st, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package es.wiky.chat;
  2.  
  3. import java.io.File;
  4.  
  5. import org.bukkit.plugin.PluginManager;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. import es.wiky.chat.Eventos;
  9.  
  10. public class Main extends JavaPlugin {
  11.  
  12. private PluginManager Plugin = this.getServer().getPluginManager();
  13.  
  14. public void onEnable(){
  15. System.out.println("Chat+ has been enabled");
  16. registrarCommandos();
  17. registrarEventos();
  18. File config = new File(getDataFolder() + File.separator + "config.yml");
  19. if(!config.exists()){
  20. getConfig().options().copyDefaults(true);
  21. saveConfig();
  22. }
  23. }
  24.  
  25.  
  26. public void onDisable(){
  27. System.out.println("Chat+ has been disabled");
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34. private void registrarCommandos() {
  35.  
  36.  
  37. }
  38.  
  39. private void registrarEventos() {
  40. Plugin.registerEvents(new Eventos(this), this);
  41. }
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement