Combat Log
Protect your server from players disconnecting prematurely during combat! This datapack prevents the ability to disconnect during active battles, ensuring fair gameplay.
⚙️ Configuration
To access the main settings, use the command:
/function combat_log:config
Changing Combat Duration
Configure the time during which a player is considered to be in combat (20 ticks = 1 second):
/scoreboard players set time combat_log.config <ticks>
Sound Settings
Change the sound effects accompanying various events:
/ data modify storage combat_log:config <sound_name> set value "<value>"
Available sound parameters:
- sound_combat_join - sound when entering combat
- sound_combat_join_pitch - pitch when entering combat
- sound_combat_leave - sound when leaving combat
- sound_combat_leave_pitch - pitch when leaving combat
Message Settings
Configure text notifications for various events:
/ data modify storage combat_log:config <sound_name> set value "<value>"
Message parameters:
- message_combat_join_text - text when entering combat
- message_combat_join_color - text color when entering combat
- message_combat_leave_text - text when leaving combat
- message_combat_leave_color - text color when leaving combat
- message_combat_death_text - text when dying in combat
- message_combat_death_color - text color when dying in combat
- message_combat_time_text - combat time text
- message_combat_time_color - combat time text color
- message_combat_time_time_color - time color in text
🐛 Bug Reporting
If you discover any issues or bugs in the datapack's operation, report them in our Discord community.
📄 License
This project is distributed under the AGPL-3.0-or-later license.