mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
(Hopefully) Fix NPE, delay PurgeTask start for a few seconds just to be
safe.
This commit is contained in:
@ -41,7 +41,7 @@ public class UserPurgeTask implements Runnable {
|
||||
int userId = Integer.valueOf(userslist.get(i).get(1));
|
||||
HashMap<Integer, ArrayList<String>> username = database.read("SELECT user FROM " + tablePrefix + "users WHERE id = '" + userId + "'");
|
||||
|
||||
if (Bukkit.getPlayer(username.get(1).get(0)).isOnline()) {
|
||||
if (username != null && Bukkit.getOfflinePlayer(username.get(1).get(0)).isOnline()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user