Skip to content

Added ShopDeleted and ShopCreated SSEs and Id property to shops.#44

Open
Iliuyux wants to merge 3 commits into
EarthMC:mainfrom
Iliuyux:feature/shop-sse
Open

Added ShopDeleted and ShopCreated SSEs and Id property to shops.#44
Iliuyux wants to merge 3 commits into
EarthMC:mainfrom
Iliuyux:feature/shop-sse

Conversation

@Iliuyux
Copy link
Copy Markdown

@Iliuyux Iliuyux commented May 10, 2026

Added ShopDeleted and ShopCreated events, and every shop object now includes the unique shop Id property.

Copy link
Copy Markdown
Contributor

@Veyronity Veyronity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty good!


public static JsonObject getShopObject(Shop shop) {
JsonObject jsonObject = new JsonObject();
jsonObject.addProperty("Id", shop.getShopId());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this lowercase

Comment thread docs/shop.md Outdated
It is important to note that the information here is not public, and players can only access their own shops' information, using their API key.

Each shop object has the following properties:
- `Id` - The unique identifier of the shop
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase

Comment thread docs/shop.md Outdated
[
{
"1": {
"Id": 120,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase

@Iliuyux
Copy link
Copy Markdown
Author

Iliuyux commented May 23, 2026

Done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants