SHARE
TWEET

sqlbros.main

a guest Feb 23rd, 2015 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.heu.craft.sql.bro;
  2.  
  3. import java.sql.SQLException;
  4.  
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. public class main extends JavaPlugin{
  8.         public sqlmg mysql = new sqlmg (this);
  9.        
  10.  
  11.         @Override
  12.         public void onEnable() {
  13.                 System.out.println("[sql bro] erfolgreich geladen!");
  14.                 try {
  15.                         this.mysql.setupDB();
  16.                 } catch (SQLException e) {
  17.                         System.out.println("Failed to start MySQL-service (" + e.getMessage() + ").");
  18.                         //e.printStackTrace();
  19.                 }
  20.                
  21.         }
  22.         @Override
  23.         public void onDisable() {
  24.                 try {
  25.                         this.mysql.closeDB();
  26.                 } catch (SQLException e) {
  27.                         // TODO Auto-generated catch block
  28.                         e.printStackTrace();
  29.                 }
  30.                 System.out.println("[sql bro] erfolgreich deaktiviert!");
  31.         }
  32.  
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top