Battle Logs
Which fights are saved, the report after a death, the battle menus with timeline and gear, sharing, and how long logs are kept.
A battle log is the record of one fight: who fought, how long, with what, every hit, and what each
side carried at the start and the end. Players read them to see how they lost, and staff read them to
settle disputes. File: configs/statistic/BattleLogs.yml, menus in menus/battlelog/.
Each saved battle gets a number (#12) and a 6-character code. Both open it: /battlelog view 12
or /battlelog view K7Q2MX.
Which fights are saved
A log is made when a tagged player's tag ends. Two lists decide whether it is kept, and a fight has to pass both.
The first is battleLogSettings, by how the tag ended:
| Key | Default | Ending |
|---|---|---|
saveDeaths | true | The player died |
saveCombatlogs | true | The player logged out |
saveExpired | false | The tag ran out |
saveManuel | true | Removed by plugins that end tags manually |
The second is filterSettings:
| Key | Default | The fight must |
|---|---|---|
minimumDurationSeconds | 3 | Have lasted at least this long |
minimumTotalDamage | 5 | Have had at least this much damage, both sides together |
requireKiller | false | Have a last attacker |
saveTimeoutBattles | false | For an expired tag: also be on here |
saveLogoutBattles | false | For a logout: also be on here |
So with the defaults only deaths are saved:
| Ending | Saved when |
|---|---|
| Death | saveDeaths is on and the fight passes the duration and damage filters |
| Logout | Both saveCombatlogs and saveLogoutBattles are on |
| Expired | Both saveExpired and saveTimeoutBattles are on |
| Removed by staff | Never |
To keep combat logs too, set saveLogoutBattles: true.
Head drops and kill messages happen only when a death battle is saved. A one-hit kill under 3 seconds, or a fight with under 5 damage, saves no log, drops no head and shows no kill message. Lower the filters if that is not what you want.
The report after a fight
When a death battle is saved, the dead player gets a short report in chat: who killed them with how much health left, the hits and damage of the last seconds, how many totems each side used, and two buttons: view report and share. The killer gets a report too.
Key in reportSettings | Default | Meaning |
|---|---|---|
enabled | true | Send the reports |
toKiller | true | Also send one to the killer |
lastSeconds | 5 | The report sums up this many last seconds of the fight |
shareCooldownSeconds | 60 | Seconds between two shares by one player |
The texts are deathReport and killReport under messages. The buttons run /battlelog view <code> and
/battlelog share <code>, so players need uxmpvpcore.battlelog.use to click them.
The menus
| Menu | File | Opens with | Shows |
|---|---|---|---|
| Battle list | battle_logs.yml | /battlelog, /battlelog player <name> | Recent battles, newest first, one item each |
| One battle | battle_log.yml | Clicking a battle, /battlelog view | Victim, killer, the battle's info, damage dealt and taken per player |
| Timeline | battle_log_timeline.yml | The timeline button | Every hit and every item used, in order, with time, damage and health left |
| Gear | battle_log_gear.yml | The gear button | Armour, hands, effects and supplies of victim and killer, at the start and at the end |
Every player with uxmpvpcore.battlelog.use can open any battle, not only their own. Each menu file
has a comment at the top listing the fields it can show.
Sharing
/battlelog share <code>, or the share button, posts a line to everyone with a button that opens the
battle. A player can share only battles they fought in; staff with uxmpvpcore.battlelog.admin can
share any. Players who turned broadcasts off do not see shares.
Details
The timeline and the gear are the battle's details, kept apart from its summary.
Key in detailSettings | Default | Meaning |
|---|---|---|
enabled | true | Keep details at all. Off, the timeline and gear menus are empty |
maxEvents | 300 | Most hits and uses kept per battle. A longer fight keeps its end |
gear | true | Keep the gear at the start and the end |
supplies | Totems, golden apples, pearls, wind charges, splash potions, XP bottles | Items counted in the inventory as supplies |
cacheSize | 50 | Details of this many battles are kept in memory for the menus |
A battle with details takes about one kilobyte in the database.
How long logs are kept
Key in retentionSettings | Default | Meaning |
|---|---|---|
detailsDays | 14 | Details are deleted after this many days. The summary stays |
logsDays | 90 | Whole battles are deleted after this many days |
cleanupHours | 24 | How often old rows are deleted, and once at start |
deleteBatch | 500 | Rows deleted at a time, so a big cleanup does not hold the database |
0 keeps them forever.
Saving and the cache
| Key | Default | Meaning |
|---|---|---|
battleLogSettings.flushMinutes | 10 | Logs are written to the database every this many minutes, and on shutdown. Unwritten logs still show in the menus |
battleLogSettings.enableDetailedLogging | true | Write a line to the console for every saved battle |
cacheSettings.enableCache | true | Keep recent battles in memory |
cacheSettings.maxCacheSize | 1000 | How many |
cacheSettings.preloadRecentBattles | true | Read the last preloadDays (7) days into memory at start |
cacheSettings.enableQueryCache | true | Remember lists read from the database |
cacheSettings.queryCacheMaxSize, queryCacheDurationMinutes | 500, 15 | For how many lists, and how long |
/battlelog stats counts only battles in memory. /battlelog admin database lists straight from the
database.
Related: Head Drops, Kill Messages, Commands
Was this page helpful?