mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-09 20:31:28 +01:00
Fix NPE in /dxl list
This commit is contained in:
parent
0746d836b3
commit
3c80c7635f
@ -107,7 +107,11 @@ public class ListCommand extends DCommand {
|
||||
|
||||
for (String map : toSend) {
|
||||
WorldConfig worldConfig = new WorldConfig(new File(mapFolder + "/" + map, "config.yml"));
|
||||
MessageUtil.sendMessage(sender, "&b" + map + "&7 | &e" + worldConfig.getInvitedPlayers().contains(sender));
|
||||
boolean invited = false;
|
||||
if (worldConfig != null) {
|
||||
invited = worldConfig.getInvitedPlayers().contains(sender);
|
||||
}
|
||||
MessageUtil.sendMessage(sender, "&b" + map + "&7 | &e" + invited);
|
||||
}
|
||||
|
||||
} else if (listType == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user