
Simple Combat Log
The Simple-Combat-Log plugin prevents players from logging out during combat by setting a combat timer, disabling actions like Elytra use, and broadcasting a message if they leave the server mid-combat.
36.1K
24
Refactor — cleaner package structure & state ownership
Release3 нед. назад
Список изменений
Refactor — no functional changes
This release is a pure code refactor. Gameplay behaviour is identical to the previous version.
Package structure
Packages have been renamed to follow Java conventions (lowercase):
| Before | After |
|---|---|
...Utils | ...util |
...Combat | ...combat |
...Config | ...config |
...Listener | ...listener |
What changed
CombatManager (new: combat package)
- Now fully owns
combatTimers,activeTimersandbossBarsmaps - Listeners no longer touch state directly — all changes go through the public API
PluginConfig (new: config package)
- Centralises every
config.getString / getBoolean / getIntcall - Single instance passed to all listeners on startup
Listener split
CombatTagListener— damage, projectile, explosion and enderpearl taggingCombatRestrictionListener— elytra, teleport, command block, mending, riptideCombatZoneListener— proximity tagging on joinCombatLogoutListener— disconnect handlingAntiKillAbuse— kill-farming detectionWorldGuardListener— region entry guard (registered only when WorldGuard is present)
CombatLog (main class)
- Reduced to wiring only: config → manager → listeners
registerListeners()is the single place to see which listeners are active
Migration
No config changes. No permission changes. No command changes. Simply replace the old jar with the new one and restart.
Файлы
CombatLog.jar(60.31 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.15
Загрузчики
PaperPurpur
Версии игры
1.21–1.21.11
Загрузок
5.3K
Дата публикации
3 нед. назад