Null check in MessageManager
This commit is contained in:
parent
29f3241098
commit
c2c63f4fc0
@ -128,7 +128,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
|
||||
{
|
||||
PunishClient client = _punish.GetClient(from.getName());
|
||||
|
||||
if (client.IsMuted())
|
||||
if (client != null && client.IsMuted())
|
||||
{
|
||||
Punishment punishment = client.GetPunishment(PunishmentSentence.Mute);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user