diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-22 00:40:57 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-22 00:41:39 +0500 |
| commit | a7f77c115bc95eb8a667df1146cc26dc17367879 (patch) | |
| tree | 77b08b0cb4f07f9b3d21c277d5621bd0ee5a488c /shared/src/main/java/kz/ilotterytea/frogartha/exceptions | |
| parent | e4997681a2d08adc9b9055b0b2a1dc52d54edd47 (diff) | |
feat: player jumps like a frog!!! (FROGartha reference) + player state
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions')
| -rw-r--r-- | shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java | 4 |
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 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()); |
