mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-12 10:24:07 +01:00
I am stupid.
This commit is contained in:
parent
446cd422e0
commit
0160a39d9f
@ -53,8 +53,8 @@ public class UUIDHandler {
|
||||
}
|
||||
|
||||
long time = System.currentTimeMillis() - start;
|
||||
long timePerUUID = time / uuidMap.size();
|
||||
PlotMain.sendConsoleSenderMessage("&cFinished caching of offlineplayers! Took &6" + time + "&cms (&6" + timePerUUID + "&c per second), &6"
|
||||
long 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.");
|
||||
}
|
||||
|
@ -35,15 +35,24 @@ public class plugin extends SubCommand {
|
||||
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
downloads =
|
||||
convertToNumericString(getInfo("https://intellectualsites.com/spigot_api.php?method=downloads&url=http://www.spigotmc.org/resources/plotsquared.1177/"), false);
|
||||
try {
|
||||
downloads =
|
||||
convertToNumericString(getInfo("https://intellectualsites.com/spigot_api.php?method=downloads&url=http://www.spigotmc.org/resources/plotsquared.1177/"), false);
|
||||
} catch (Exception e) {
|
||||
downloads = "unknown";
|
||||
}
|
||||
}
|
||||
}, 1l);
|
||||
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
version =
|
||||
convertToNumericString(getInfo("https://intellectualsites.com/spigot_api.php?method=version&resource=1177"), true);
|
||||
try {
|
||||
version =
|
||||
convertToNumericString(getInfo("https://intellectualsites.com/spigot_api.php?method=version&resource=1177"), true);
|
||||
} catch(Exception e) {
|
||||
//Let's just ignore this, most likely error 500...
|
||||
version = "unknown";
|
||||
}
|
||||
}
|
||||
}, 200l);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user