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

EmakiCorelib

Shared native Java core library for the Emaki plugin suite

22
0
Все версииEmakiCorelib 1.11.0

EmakiCorelib 1.11.0

Release1 нед. назад

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

EmakiCoreLib Changelog

[1.11.0] - 2026-03-31

New Features

CoinsEngine Economy Support

  • Added the GiveCoinsAction action, supporting currency operations for the CoinsEngine economy plugin.
  • Action Parameters:
    • amount (required): The amount of currency.
    • currency (required): The type of currency.
  • Automatically registered to the built-in action list, supporting templated configuration.
  • Requires the CoinsEngine plugin to be installed on the server.

Improvements & Optimizations

Action System Improvements

  • All built-in Action IDs have been uniformly changed from underscore format to camelCase format.
    • send_messagesendmessage
    • play_soundplaysound
    • broadcast_messagebroadcastmessage
    • send_titlesendtitle
    • send_action_barsendactionbar
    • give_moneygivemoney
    • take_moneytakemoney
    • set_moneysetmoney
    • give_expgiveexp
    • take_exptakeexp
    • set_expsetexp
    • set_healthsethealth
    • give_potion_effectgivepotioneffect
    • remove_potion_effectremovepotioneffect
    • clear_potion_effectsclearpotioneffects
    • spawn_particlespawnparticle
    • run_command_as_playerruncommandasplayer
    • run_command_as_opruncommandasop
    • run_command_as_consoleruncommandasconsole
    • use_templateusetemplate

Enhanced Error Messages

  • Improved error messages for missing actions (missingActionResult).
  • Automatically detects Action ID format and provides normalization suggestions.
  • Example: When using send_message, prompts "Use 'sendmessage' instead".
  • Helps developers quickly locate and fix configuration errors.

ActionExecutor Optimization

  • Added missingActionResult() method to uniformly handle cases where actions are not found.
  • Improved Action ID normalization logic, removing underscores before lookup.
  • Optimized error message format to provide clearer migration guidance.

Configuration Changes

Configuration Template Updates

  • Action IDs in the example configuration templates have been updated to the new format.
  • Comment examples have been synchronized, demonstrating the correct way to configure actions.

Code Improvements

BuiltinActions

  • Added registration for GiveCoinsAction.
  • Maintained the registration order of other built-in actions.

All Action Implementation Classes

  • Updated the return value of the id() method to camelCase format.
  • Kept action functionality and parameters unchanged.

Usage Notes

Action ID Migration

  • Important: All action configurations must be migrated from underscore format to camelCase format.
  • The system will automatically detect and provide migration suggestions, but it is recommended to proactively update configuration files.
  • Affected configuration files:
    • Action templates in EmakiCoreLib/config.yml
    • Quality actions in EmakiForge/config.yml
    • Custom action configuration files
    • Action calls in scripts and plugins.

CoinsEngine Integration

  • To use the givecoins action, ensure the CoinsEngine plugin is installed on the server.
  • CoinsEngine is an optional dependency and does not affect core functionality.
  • Clear error messages are returned if the action execution fails.

Compatibility

  • Maintains backward compatibility with configuration files from older versions.
  • Error prompts will help developers quickly locate issues.
  • It is recommended to back up configuration files before upgrading.

Known Issues

  • None

Файлы

EmakiCoreLib-1.11.0.jar(277.16 KiB)
Основной
Скачать

Метаданные

Канал релиза

Release

Номер версии

1.11.0

Загрузчики

Paper
Purpur

Версии игры

1.21–1.21.11

Загрузок

1

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

1 нед. назад

Загрузил

ID версии

Главная