Provide reason for player leaving

Expose the reason for why a player is leaving a server in playerEvent.
This commit is contained in:
Hornwitser committed 2022-07-08 01:00:54 +02:00
1 parent 8017497bdd
commit db562ce6a0
5 files changed
+37 -10

No files matched your search

+2
View File
@@ -1284,10 +1284,12 @@ messages.playerEvent = new Event({
type: "player_event",
links: ["instance-slave", "slave-master"],
forwardTo: "master",
eventRequired: ["instance_id", "type", "name"],
eventProperties: {
"instance_id": { type: "integer" },
"type": { type: "string", enum: ["join", "leave"] },
"name": { type: "string" },
"reason": { type: "string" },
},
});