mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 02:59:06 +02:00
Fix exception when getting displayname
Fix exception if null values are in settings groups.yml
This commit is contained in:
@@ -17,7 +17,7 @@ public class Chat implements StorageObject
|
||||
"Disable this if you have any other plugin, that modifies the displayname of a user.",
|
||||
"If it is not set, it will be enabled if EssentialsChat is installed, otherwise not."
|
||||
})
|
||||
private Boolean changeDisplayname;
|
||||
private Boolean changeDisplayname = true;
|
||||
private String displaynameFormat = "{PREFIX}{NICKNAMEPREFIX}{NAME}{SUFFIX}";
|
||||
@Comment(
|
||||
{
|
||||
|
@@ -59,7 +59,10 @@ public class GroupsHolder extends AsyncStorageObjectHolder<Groups> implements IG
|
||||
{
|
||||
if (player.isAuthorized("essentials.groups." + entry.getKey()))
|
||||
{
|
||||
if(entry.getValue() != null)
|
||||
{
|
||||
list.add(entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
|
Reference in New Issue
Block a user