From a7f77c115bc95eb8a667df1146cc26dc17367879 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 22 Jan 2025 00:40:57 +0500 Subject: feat: player jumps like a frog!!! (FROGartha reference) + player state --- .../java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions') 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 4eaf389..ec0deb4 100644 --- a/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java +++ b/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java @@ -21,6 +21,10 @@ public class PlayerKickException extends RuntimeException implements Transferabl return new PlayerKickException("Internal Server Error"); } + public static PlayerKickException jumpSpam() { + return new PlayerKickException("Kicked for jump spamming"); + } + @Override public void serialize(Serializer serializer) throws SerializationException { serializer.serializeString(getMessage()); -- cgit v1.2.3