Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class Main extends JavaPlugin implements Listener{
  2.  
  3. public SqlConnection sql;
  4. private static Main instance;
  5. public HashMap<UUID, ScoreboardManager> scoreboard = new HashMap<UUID, ScoreboardManager>();
  6.  
  7. @Override
  8. public void onEnable() {
  9.  
  10. instance = this;
  11.  
  12. System.out.println("Plugin Active");
  13.  
  14. new EventsManager().registers(this);
  15. new CommandsManager().registers(this);
  16.  
  17. sql = new SqlConnection("jdbc:mysql://","193.70.80.72","gm4_8","gm4_8","ac8f3902a3");
  18. sql.connection();
  19. }
  20.  
  21. @Override
  22. public void onDisable() {
  23. System.out.println("Plugin Desactive");
  24. sql.disconnect();
  25. }
  26.  
  27. public static Main getInstance() {
  28. return instance;
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement