mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:01:32 +01:00
Update Players.java
This commit is contained in:
parent
554a770a4d
commit
454fd1b2f8
@ -18,6 +18,7 @@ public class Players {
|
|||||||
public static boolean isLoading = false;
|
public static boolean isLoading = false;
|
||||||
|
|
||||||
public static void reload() {
|
public static void reload() {
|
||||||
|
Client.logger.info("Clearing players cache");
|
||||||
playersCache.clear();
|
playersCache.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +102,7 @@ public class Players {
|
|||||||
public void run() {
|
public void run() {
|
||||||
PlayerResponse response = getAccount(name.toLowerCase());
|
PlayerResponse response = getAccount(name.toLowerCase());
|
||||||
if(response != null && response.getAccount() != null) {
|
if(response != null && response.getAccount() != null) {
|
||||||
playersCache.put(response.getAccount().getUsername(), response.getAccount());
|
playersCache.put(response.getAccount().getUsername().toLowerCase(), response.getAccount());
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user