summaryrefslogtreecommitdiff
path: root/shared/src/main/java/kz/ilotterytea/frogartha/exceptions
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-01-23 00:55:33 +0500
committerilotterytea <iltsu@alright.party>2025-01-23 00:55:33 +0500
commit6bf7ee0b5f0c15fefa2a6cde4a17d8f6ade3f39b (patch)
treed085466f3d453a73322adc881296e6c8b30ba26e /shared/src/main/java/kz/ilotterytea/frogartha/exceptions
parent7757de487c909fe15e0ac0b5cbaa27f12109c66d (diff)
feat: chat !!!
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions')
-rw-r--r--shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java4
1 files changed, 4 insertions, 0 deletions
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());