This commit is contained in:
parent
bbeda2ddaa
commit
1614e7ee49
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ public abstract class DecoratedMessage {
|
||||||
|
|
||||||
@ModifyVariable(method = "handleDecoratedMessage", at = @At(value = "HEAD"), argsOnly = true)
|
@ModifyVariable(method = "handleDecoratedMessage", at = @At(value = "HEAD"), argsOnly = true)
|
||||||
public @NotNull SignedMessage modifyChatMessageSentByPlayers(@NotNull SignedMessage original) {
|
public @NotNull SignedMessage modifyChatMessageSentByPlayers(@NotNull SignedMessage original) {
|
||||||
|
if(AnimalRP.noChat.get(player.getUuid()) != null) return original;
|
||||||
|
|
||||||
Animal animal = AnimalRP.users.get(player.getUuid());
|
Animal animal = AnimalRP.users.get(player.getUuid());
|
||||||
if (animal == null)
|
if (animal == null)
|
||||||
return original;
|
return original;
|
||||||
|
|
Loading…
Reference in a new issue