Shared HostingFirst month freeShared web hosting from $2.99/mo — $0 today, and the price you sign up at is the price you renew at.See hosting plans →

NxLabs / Mordhau

[Abandoned] Playtime Tracker

By NightV402

A simple server-side mod that tracks the time players have spent on the server

Description

> NOTE

Please join the discord if you have any issues or feedback/suggestions

Also make sure to always end the match before stopping your server or else the playtime of the most recent match won't be saved!

> COMMAND USAGE

If not in disabled in the configuration, the mod also adds some chat commands

.stats [empty/username/PlayFabID]

This command displays the playtime, kills and deaths of a player. If the parameter is left empty, the stats for yourself will be displayed. The playtime permission is required.

.ptt set [username/PlayFabID] [playtime]

This command is used to set a player's playtime manually. The set playtime permission is required

> INSTALLATION

Since this mod is designed to work on the server-side only, the installation steps are a bit different from some other mods

  1. Download the mod's zip file from this page and extract the PAK-file to ...\Mordhau\Content\CustomPaks

If the CustomPaks folder doesn't exist, create it

  1. In your Game.ini under [/Script/Mordhau.MordhauGameMode] add SpawnServerActorsOnMapLoad=/PlaytimeTracker/PlaytimeHandler.PlaytimeHandler_C

Note that because of this manual installation, the mod will not update automatically

> DEPENDENCIES

Night Toolbox needs to be installed for this mod to work

> CONFIGURATION

Configuration is done via the Game.ini:

[PlaytimeTracker] ; The required permission level for using the .playtime command. 0 = Player, 1 = Admin, 2 = Custom list ; See below this line for how to make a custom list ; Default is 0. PlaytimePerm={0/1/2} ; The custom list for the .playtime command if used. An array of PlayFabIDs can be added. PlaytimeUser={PlayFabID} ; The required permission level for using the .setplaytime command.  ; Permission levels are the same as for the .playtime command. ; Default is 1. SetPlaytimePerm={0/1/2} ; The custom list for the .playtime command if used SetPlaytimeUser={PlayFabID}

> DEVELOPER NOTE

Using the source of the mod you will be able to access player's stats in your own mod

The source is available for download here

The source may be outdated but should still work when being used as a dependency

You can use the "Get Playtime", "Get Kills" and "Get Deaths" functions anywhere in your mod to get a player's stats

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.