mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 03:24:31 +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.",
|
"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."
|
"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}";
|
private String displaynameFormat = "{PREFIX}{NICKNAMEPREFIX}{NAME}{SUFFIX}";
|
||||||
@Comment(
|
@Comment(
|
||||||
{
|
{
|
||||||
|
@@ -59,7 +59,10 @@ public class GroupsHolder extends AsyncStorageObjectHolder<Groups> implements IG
|
|||||||
{
|
{
|
||||||
if (player.isAuthorized("essentials.groups." + entry.getKey()))
|
if (player.isAuthorized("essentials.groups." + entry.getKey()))
|
||||||
{
|
{
|
||||||
|
if(entry.getValue() != null)
|
||||||
|
{
|
||||||
list.add(entry.getValue());
|
list.add(entry.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
|
Reference in New Issue
Block a user