
EmakiCorelib
Shared native Java core library for the Emaki plugin suite
22
0
Список изменений
EmakiCoreLib Changelog
[1.11.0] - 2026-03-31
New Features
CoinsEngine Economy Support
- Added the
GiveCoinsActionaction, 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_message→sendmessageplay_sound→playsoundbroadcast_message→broadcastmessagesend_title→sendtitlesend_action_bar→sendactionbargive_money→givemoneytake_money→takemoneyset_money→setmoneygive_exp→giveexptake_exp→takeexpset_exp→setexpset_health→sethealthgive_potion_effect→givepotioneffectremove_potion_effect→removepotioneffectclear_potion_effects→clearpotioneffectsspawn_particle→spawnparticlerun_command_as_player→runcommandasplayerrun_command_as_op→runcommandasoprun_command_as_console→runcommandasconsoleuse_template→usetemplate
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.
- Action templates in
CoinsEngine Integration
- To use the
givecoinsaction, 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
Загрузчики
PaperPurpur
Версии игры
1.21–1.21.11
Загрузок
1
Дата публикации
1 нед. назад
