ModsFinder
PE

Player Events

by IotaBread

With Player Events installed, a server can run commands or send messages when a player dies, joins, leaves or kills another player or an entity.

FabricQuiltServer-side onlyMIT LicenseOpen source1.16 – 1.20.1

What it does

The Fabric and Quilt mod watches for a set of player and entity events and runs configurable commands or sends configurable messages when one fires. Events include a player dying, leaving the server, joining for the first time, joining, killing another player, and killing any entity. Since version 2.2.0, a datapack can also declare a function tag for each event, and a JSON file can list the actions to send or execute under an actions array.

Inside messages and commands, tokens such as player name or entity display name are replaced with the player or entity that triggered the event, and a random option picks one message from several defined for an event. Entity tokens include the display name, the UUID and the x, y and z coordinates, and most tokens can be read as properties such as player.name. The mod is server-side only, so clients without it still connect normally, and it is published for 1.16 – 1.20.1 on Fabric and Quilt with the MIT License. Some events, such as leaving, cannot target the leaving player with broadcast set to false, because the player is no longer on the server.

Key features

  1. Configurable event messages

    Messages and commands can be attached to joins, leaves, deaths and kills, with a choice of broadcasting to everyone.

  2. Token replacement

    Event and entity tokens are replaced with the triggering player's name, display name, UUID or coordinates.

  3. Random message selection

    A setting can pick one message at random from several defined for the same event.

  4. Datapack function tags

    Datapacks can define functions that an event runs through its matching function tag, a capability added in version 2.2.0.

Compatibility

Latest build for each game version and loader.

1.20.x1 of 1 version with builds
1.20.12.4.52.4.5
1.19.x4 of 4 versions with builds
1.19.32.4.42.4.4
1.19.22.4.42.4.4
1.19.12.4.42.4.4
1.192.4.42.4.4
1.18.x3 of 3 versions with builds
1.18.22.3.22.3.2
1.18.12.2.3Not available
1.182.2.3Not available
1.17.x2 of 2 versions with builds
1.17.12.2.1Not available
1.172.2.1Not available
1.16.x6 of 6 versions with builds
1.16.52.2.1Not available
1.16.42.2.1Not available
1.16.32.2.1Not available
1.16.22.2.1Not available
1.16.12.2.1Not available
1.162.2.1Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Use cases

Who it’s for: Server owners who want scripted messages or commands tied to player activity, and datapack authors who want functions to run on these events.

How it compares

Full comparison

Post Server Join & Leave Messages to URL works on Fabric and Quilt and can be run on either side, with neither side required to have it. It is open source under the CC0 1.0 Universal license and covers 1.16 – 1.19.3. Join Leave Messages is server-side only, open source under the MIT License, and runs on Fabric and Forge for 1.18.2 – 1.20.2.

ModLoadersGame versionsEnvironmentUpdated
Player EventsFabric and Quilt1.16 – 1.20.1Server-side only2023-07-04
Post Server Join & Leave Messages to URLFabric and Quilt1.16 – 1.19.3Client or server, optional2023-01-16
Join Leave MessagesFabric and Forge1.18.2 – 1.20.2Server-side only2023-11-29

Questions

Does Player Events need to be installed on the client?

No. Server owners install it, and players connect with no copy of their own. Clients that lack the mod will not work with its messages, but they still connect.

Which loaders does Player Events support?

Fabric and Quilt. The latest files for both are 2.4.5 for 1.20.1, published on 2023-07-04.

Why does a leave event not reach the leaving player?

Because the player is no longer on the server when the event runs, so events like leave cannot send to that player when broadcast is set to false.

In the catalog

Player Events is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 34,764 mods support Minecraft 1.20.1.

More from IotaBread

All projects

Similar mods

What the author says

Note: this mod is server side only and won't work on clients A Fabric mod that executes and sends configurable commands and messages respectively on certain events triggered by a player, such as Dying, Joining a server, Killing another player, etc.
IotaBread, on the Modrinth page

Official listing

Owner
IotaBread
Published
2020-10-27
Updated on Modrinth
2023-07-04
Facts verified
2026-10-15

Tags