Advertisement
Guest User

Main

a guest
Nov 18th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package diamondrop;
  2. import java.io.File;
  3.  
  4. import org.bukkit.configuration.file.YamlConfiguration;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. public class Main extends JavaPlugin {
  8.  
  9. @Override
  10. public void onEnable(){
  11. this.saveDefaultConfig();
  12. this.getServer().getPluginManager().registerEvents(new Event(), this);
  13.  
  14. }
  15.  
  16. @Override
  17. public void onDisable() {
  18. // TODO Insert logic to be performed when the plugin is disabled
  19. this.saveDefaultConfig();
  20. getLogger().info("O plugin foi desabilitado com sucesso");
  21.  
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement