Add nullcheck on signline
This commit is contained in:
parent
7d1e7590b4
commit
aeb6d79495
|
|
@ -95,6 +95,8 @@ public class PlayerListener extends EventListener {
|
|||
if (shopHandler.isShopMaterial(bRelative)) {
|
||||
Sign signBlock = (Sign) b.getState();
|
||||
Component signLine = event.line(0);
|
||||
if (signLine == null)
|
||||
return;
|
||||
String signLineString = PlainTextComponentSerializer.plainText().serialize(signLine);
|
||||
if (!signLineString.equalsIgnoreCase(Config.shopCreationWord))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user