Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. public StoreMySQL(final String host, final int port, final String user, final String pass, final String name, final String prefix) {
  2. super();
  3. this.host = host;
  4. this.port = port;
  5. this.user = user;
  6. this.pass = pass;
  7. this.name = name;
  8. this.prefix = prefix;
  9. this.executor = Executors.newSingleThreadExecutor();
  10. this.time = System.currentTimeMillis();
  11. this.ai = new AtomicInteger();
  12. new BukkitRunnable() {
  13. public void run() {
  14. if (System.currentTimeMillis() - StoreMySQL.this.time > TimeUtil.SECOND.getTime(30)) {
  15. StoreMySQL.this.update(false, "DO 1");
  16. }
  17. }
  18. }.runTaskTimer((Plugin) Main.getPlugin(), 600L, 600L);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement