player.kick(reason) and player.ban(reason) and event

Post Reply
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

player.kick(reason) and player.ban(reason) and event

Post by Mylon »

Requesting a player.kick method and a player.ban method as well as a defines.events.on_player_kicked and defines.events.on_player_banned

Specifically, I would like to add a /moderate (player) command that allows non-admins to ban players and a /votekick (player) command that allows players to call for a vote-ban

Additionally, I would an event to fire so when a player is banned I can perform a file write to script-output with the name of the player banned and the kicker (whoever typed /kick or /ban or "script") and the reason.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: player.kick(reason) and player.ban(reason) and event

Post by Rseding91 »

I've added the events for 0.17.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”