▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/SG-Economy API
SG-Economy API

SG-Economy API

Adds an extensible economic system to Minecraft, allowing mods to define, store, and synchronize currencies and player balances through a unified API.

425
0
Все версииSG-Economy API 1.0.2

SG-Economy API 1.0.2

Release2 нед. назад

Список изменений

Changelog

[1.0.2] - 2026-02-10

Added

  • EconomyEventServiceImpl as the central implementation of economy logic.
  • EconomyServices as the single access point for economy services.
  • CoinsBagRepository to encapsulate coin capability read/write operations.
  • Additional validation (e.g. negative amounts) and logging for errors and key operations.
  • SGNetwork helper to centralize and simplify networking and payload registration.
  • SyncServerConfigS2C payload for server-to-client configuration synchronization.
  • ServerConfigSync and ServerConfigSyncEvents to send server config to clients on bake and player login.
  • ClientSyncedConfig to store and apply client-side synced configuration, used by EconomyEventServiceImpl.

Changed

  • Major refactor of the Economy API.
  • Consolidated provider interfaces into net.sirgrantd.sg_economy.api.EconomyEventProvider.
  • Updated all consumers (commands, events, GUI, examples, and mod initialization) to use the new API.
  • Adjusted death and balance logic to rely on the central service layer.
  • Refactored network layer and server config synchronization flow.
  • Moved payload registration out of SGEconomyMod into SGNetwork.
  • Updated CoinsBagCapabilities to register its payload via SGNetwork.
  • Simplified SGEconomyMod (network registration, message registration, removal of thread-group check for queued work).
  • Miscellaneous import cleanup and code formatting improvements.

Removed

  • Legacy economy/event/provider classes.
  • Old Default and Death providers.
  • CurrencyUtils.

Fixed

  • Consistent error handling for balance operations.
  • Prevention of invalid operations (e.g. negative values).

Файлы

sg_economy-1.0.2.jar(126.09 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.0.2

Загрузчики

NeoForge

Версии игры

1.21.1

Загрузок

250

Дата публикации

2 нед. назад

Загрузил

ID версии

Главная