diff --git a/README.md b/README.md index fd4ef09..3c2b1ff 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ An unofficial server for semi-famous game Rolypolyland (Shararam). Remake by alt > > We only distribute software on [GitHub](https://github.com/) and [Gitea](https://gitea.awain.net/alterwain/WhimsyWorld). > -> If you would like to have a little chat with me, here's my IRC server (TOR): +> If you would like to have a little chat about this project, here's XMPP: [wworld@chat.awain.net](xmpp:wworld@chat.awain.net?join) ## Table of contents - [Usage](#usage) diff --git a/src/main/java/com/alterdekim/game/component/GameServer.java b/src/main/java/com/alterdekim/game/component/GameServer.java index c1800ea..c40a997 100644 --- a/src/main/java/com/alterdekim/game/component/GameServer.java +++ b/src/main/java/com/alterdekim/game/component/GameServer.java @@ -244,9 +244,15 @@ public class GameServer { long postcardMessageId = ((Number) message.getArguments().get(0).getValue()).longValue(); this.postcardService.removeById(postcardMessageId); } + case BuyBatch -> buySomething(playerId, message.getArguments().get(0)); } } + private void buySomething(long playerId, AMFObject obj) { + List array = (List) obj.getValue(); + + } + private boolean subtractUsualTickets(long userId, int amount) { int val = this.users.getUsualTickets(userId); if ( val >= amount ) { diff --git a/src/main/java/com/alterdekim/game/component/game/UserCommandType.java b/src/main/java/com/alterdekim/game/component/game/UserCommandType.java index beafcfc..0addf2c 100644 --- a/src/main/java/com/alterdekim/game/component/game/UserCommandType.java +++ b/src/main/java/com/alterdekim/game/component/game/UserCommandType.java @@ -35,6 +35,7 @@ public enum UserCommandType { CardMessage("_MC"), MarkCardMessageAsRead("_MCR"), DeleteCardMessage("_MCD"), + BuyBatch("_BGB"), Unknown(""); private final String value;