mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 02:58:03 +01:00
Fixed the null check I broke.
This commit is contained in:
parent
364c18b842
commit
6496816692
@ -46,6 +46,11 @@ public class UserPurgeTask implements Runnable {
|
||||
for (int i = 1; i <= userslist.size(); i++) {
|
||||
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 (username == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String playerName = username.get(1).get(0);
|
||||
|
||||
if (Bukkit.getOfflinePlayer(playerName).isOnline()) {
|
||||
|
Loading…
Reference in New Issue
Block a user