1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 11:04:29 +02:00

Fix exception when getting displayname

Fix exception if null values are in settings groups.yml
This commit is contained in:
ementalo
2012-01-25 01:09:32 +00:00
parent df061749dd
commit cbee61093e
2 changed files with 4 additions and 1 deletions

View File

@@ -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(
{

View File

@@ -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;