mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-15 23:26:16 +01:00
Null check for skinname
This commit is contained in:
parent
1ae074278e
commit
0b1a8cc369
@ -32,6 +32,8 @@ public class SkinTrait extends Trait {
|
||||
}
|
||||
|
||||
private void checkPlaceholder(boolean update) {
|
||||
if (skinName == null)
|
||||
return;
|
||||
String filled = ChatColor.stripColor(Placeholders.replace(skinName, null, npc).toLowerCase());
|
||||
if (!filled.equalsIgnoreCase(skinName)) {
|
||||
filledPlaceholder = filled;
|
||||
|
Loading…
Reference in New Issue
Block a user