mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix sender.player() call without checking if player
This commit is contained in:
parent
0ae7b9c120
commit
df4040a96a
@ -273,8 +273,9 @@ public class IrisProject {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.WHITE + "Generation Complete"));
|
||||
if (sender.isPlayer()) {
|
||||
sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.WHITE + "Generation Complete"));
|
||||
}
|
||||
});
|
||||
|
||||
//@builder
|
||||
|
Loading…
x
Reference in New Issue
Block a user