Implementation of Gradle build framework (#369)
* Cleanup * Add build file * The great migration * Restore MINA to 1.1.7 * Removed .gradle * Added flatdir for libs with no artifact repository * Add README.md, rename Implementation-Title
This commit is contained in:
1 parent
54f42aaf8a
commit
02b4df2666
858 files changed
+99
-124579
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package com.rebotted.integrations;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
public class RegisteredAccsWebsite {
|
||||
static String password;
|
||||
private static boolean hasntwarned = true;
|
||||
|
||||
private static void setAccountsRegistered(int amount) throws IOException {
|
||||
URL url;
|
||||
url = new URL("https://2006rebotted.tk/accountsregistered.php?pass=" + password + "&amount=" + amount);
|
||||
url.openStream().close();
|
||||
}
|
||||
|
||||
private static int count = 25;
|
||||
public static void addUpdateRegisteredUsersTask() {
|
||||
if (password != null && !password.equals("")) {
|
||||
if (count == 0) {
|
||||
try {
|
||||
setAccountsRegistered(new File("data/characters/").list().length);
|
||||
count = 150;
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else {
|
||||
count--;
|
||||
}
|
||||
} else if (hasntwarned) {
|
||||
hasntwarned = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user