Package net.bnubot.bot.database

Examples of net.bnubot.bot.database.Database


      menu = new JMenu("Database");
      {
        menuItem = new JMenuItem("Rank editor");
        menuItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            Database d = Database.getInstance();
            if(d != null)
              new DatabaseRankEditor(d);
            else
              c.recieveError("There is no database initialized.");
          } });
        menu.add(menuItem);
       
        menuItem = new JMenuItem("Account editor");
        menuItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent event) {
            Database d = Database.getInstance();
            if(d != null)
              new DatabaseAccountEditor(d);
            else
              c.recieveError("There is no database initialized.");
          } });
View Full Code Here


          primary.recieveInfo("Database is not configured; disabling commands.");
        else
          Out.info("main", "Database is not configured; disabling commands.");
      } else {
        try {
          new Database(db_driver, db_url, db_username, db_password, db_schema);
          BNetUser.setDatabase();
          cmd = new CommandEventHandler();
          primary.addEventHandler(cmd);
         
          Settings.write("database", "driver", db_driver);
View Full Code Here

TOP

Related Classes of net.bnubot.bot.database.Database

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.