Request:
Events when any player is promoted to be an admin, or demoted to be not an admin.
Parameters:
player_index : Index of the player who is promoted or demoted.
cause_player_index : index of the player who caused promotion or demotion.
I'm thinking about a mod of admin tools. These events will be helpful.
on_player_promoted, on_player_demoted
Re: on_player_promoted, on_player_demoted
You can listen to anything executed from the console and get the data from that.
If you want to get ahold of me I'm almost always on Discord.
Re: on_player_promoted, on_player_demoted
Rseding91 wrote:You can listen to anything executed from the console and get the data from that.
...
ok...
-
- Inserter
- Posts: 36
- Joined: Wed May 18, 2016 8:34 pm
- Contact:
Re: on_player_promoted, on_player_demoted
http://lua-api.factorio.com/latest/even ... le_command
I do have to ask, though, when was this added? I don't remember seeing this when we made our admin tools. It wouldn't been so much handier than what we actually ended up doing.
I looked through old APIs. It was added in 0.15.24.
I looked through old APIs. It was added in 0.15.24.
Trash Landfill - viewtopic.php?f=91&t=30882
Re: on_player_promoted, on_player_demoted
I wasn't stating I wouldn't add the event - just that in the meantime you can get around the lack of an event by doing the above.
If you want to get ahold of me I'm almost always on Discord.
Re: on_player_promoted, on_player_demoted
Oh, thanks a lot!Rseding91 wrote:I wasn't stating I wouldn't add the event - just that in the meantime you can get around the lack of an event by doing the above.
Not making the mod at this moment, but I have it in my todo list. So the request is for future-proof.
Re: on_player_promoted, on_player_demoted
Rseding, you are... Such a programmer!Rseding91 wrote:I wasn't stating I wouldn't add the event - just that in the meantime you can get around the lack of an event by doing the above.