DUXPLIMA Documentation

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:

KeyDefaultEnding
saveDeathstrueThe player died
saveCombatlogstrueThe player logged out
saveExpiredfalseThe tag ran out
saveManueltrueRemoved by plugins that end tags manually

The second is filterSettings:

KeyDefaultThe fight must
minimumDurationSeconds3Have lasted at least this long
minimumTotalDamage5Have had at least this much damage, both sides together
requireKillerfalseHave a last attacker
saveTimeoutBattlesfalseFor an expired tag: also be on here
saveLogoutBattlesfalseFor a logout: also be on here

So with the defaults only deaths are saved:

EndingSaved when
DeathsaveDeaths is on and the fight passes the duration and damage filters
LogoutBoth saveCombatlogs and saveLogoutBattles are on
ExpiredBoth saveExpired and saveTimeoutBattles are on
Removed by staffNever

To keep combat logs too, set saveLogoutBattles: true.

Head drops and kill messages follow the battle log

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 reportSettingsDefaultMeaning
enabledtrueSend the reports
toKillertrueAlso send one to the killer
lastSeconds5The report sums up this many last seconds of the fight
shareCooldownSeconds60Seconds 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

MenuFileOpens withShows
Battle listbattle_logs.yml/battlelog, /battlelog player <name>Recent battles, newest first, one item each
One battlebattle_log.ymlClicking a battle, /battlelog viewVictim, killer, the battle's info, damage dealt and taken per player
Timelinebattle_log_timeline.ymlThe timeline buttonEvery hit and every item used, in order, with time, damage and health left
Gearbattle_log_gear.ymlThe gear buttonArmour, 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 detailSettingsDefaultMeaning
enabledtrueKeep details at all. Off, the timeline and gear menus are empty
maxEvents300Most hits and uses kept per battle. A longer fight keeps its end
geartrueKeep the gear at the start and the end
suppliesTotems, golden apples, pearls, wind charges, splash potions, XP bottlesItems counted in the inventory as supplies
cacheSize50Details 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 retentionSettingsDefaultMeaning
detailsDays14Details are deleted after this many days. The summary stays
logsDays90Whole battles are deleted after this many days
cleanupHours24How often old rows are deleted, and once at start
deleteBatch500Rows deleted at a time, so a big cleanup does not hold the database

0 keeps them forever.

Saving and the cache

KeyDefaultMeaning
battleLogSettings.flushMinutes10Logs are written to the database every this many minutes, and on shutdown. Unwritten logs still show in the menus
battleLogSettings.enableDetailedLoggingtrueWrite a line to the console for every saved battle
cacheSettings.enableCachetrueKeep recent battles in memory
cacheSettings.maxCacheSize1000How many
cacheSettings.preloadRecentBattlestrueRead the last preloadDays (7) days into memory at start
cacheSettings.enableQueryCachetrueRemember lists read from the database
cacheSettings.queryCacheMaxSize, queryCacheDurationMinutes500, 15For 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