From 6bf7ee0b5f0c15fefa2a6cde4a17d8f6ade3f39b Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 23 Jan 2025 00:55:33 +0500 Subject: feat: chat !!! --- .../java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java') diff --git a/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java b/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java index ad9c408..e24c633 100644 --- a/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java +++ b/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java @@ -33,6 +33,10 @@ public class PlayerKickException extends RuntimeException implements Transferabl return new PlayerKickException("You are not in room"); } + public static PlayerKickException messageSpam() { + return new PlayerKickException("Kicked for spamming"); + } + @Override public void serialize(Serializer serializer) throws SerializationException { serializer.serializeString(getMessage()); -- cgit v1.2.3