mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
Yes, I am really stupid... -_-
This commit is contained in:
@ -53,7 +53,7 @@ public class UUIDHandler {
|
||||
}
|
||||
|
||||
long time = System.currentTimeMillis() - start;
|
||||
long timePerUUID = uuidMap.size() / time;
|
||||
double timePerUUID = uuidMap.size() / time;
|
||||
PlotMain.sendConsoleSenderMessage("&cFinished caching of offlineplayers! Took &6" + time + "&cms (&6" + timePerUUID + "&c per millisecond), &6"
|
||||
+ length + " &cUUID's were cached" + " and there is now a grand total of &6" + uuidMap.size()
|
||||
+ " &ccached.");
|
||||
|
@ -94,22 +94,16 @@ public class plugin extends SubCommand {
|
||||
* @param link
|
||||
* @return
|
||||
*/
|
||||
private static String getInfo(String link) {
|
||||
try {
|
||||
URLConnection connection = new URL(link).openConnection();
|
||||
connection.addRequestProperty("User-Agent", "Mozilla/4.0");
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
String document = "", line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
document += (line + "\n");
|
||||
}
|
||||
reader.close();
|
||||
return document;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "";
|
||||
}
|
||||
private static String getInfo(String link) throws Exception {
|
||||
URLConnection connection = new URL(link).openConnection();
|
||||
connection.addRequestProperty("User-Agent", "Mozilla/4.0");
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
|
||||
String document = "", line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
document += (line + "\n");
|
||||
}
|
||||
reader.close();
|
||||
return document;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user