Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public StoreMySQL(final String host, final int port, final String user, final String pass, final String name, final String prefix) {
- super();
- this.host = host;
- this.port = port;
- this.user = user;
- this.pass = pass;
- this.name = name;
- this.prefix = prefix;
- this.executor = Executors.newSingleThreadExecutor();
- this.time = System.currentTimeMillis();
- this.ai = new AtomicInteger();
- new BukkitRunnable() {
- public void run() {
- if (System.currentTimeMillis() - StoreMySQL.this.time > TimeUtil.SECOND.getTime(30)) {
- StoreMySQL.this.update(false, "DO 1");
- }
- }
- }.runTaskTimer((Plugin) Main.getPlugin(), 600L, 600L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement