Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elected admin tweaks #127

Closed
HangTimeQW opened this issue Dec 2, 2020 · 10 comments
Closed

Elected admin tweaks #127

HangTimeQW opened this issue Dec 2, 2020 · 10 comments

Comments

@HangTimeQW
Copy link

There are a couple of tweaks I would like applied to elected admin behaviour.

  1. Force confirmation of /break command issues by elected admins to avoid situations where a player forgets they have admin, votes for break and instantly ends the match even if nobody else has voted. This happens typically in mix games where an admin is elected in prewar to forcestart and remove idlers.

  2. Don't automatically 'inherit' map change votes cast prior to a player being elected admin. E. G. If a player votes for dm2, then is elected admin the map currently will instantly change to dm2 even if nobody has voted for it since the player was elected admin.

  3. Exclude players marked as AFK from the voting threshold calculation. This avoids a paradox situation where people are idle and need to be prompted by forcestart but because they are idle you can't get an admin elected in order to do this.

@mushis
Copy link
Contributor

mushis commented Dec 21, 2020

My opinion.

  1. Yeah. A suggestion is that an admin must vote twice the same thing. For example, to break, he would /break, and receive a message "repeat the command to enforce admin command". Until then, it would count as a regular player vote.
  2. Yeah, this one is obvious.
  3. If there's a malicious player, he could wait until everyone is afk to be an admin :) may need some more control on this one. But yeah, something like this would be cool

@meag
Copy link
Collaborator

meag commented Jan 17, 2021

"A suggestion is that an admin must vote twice the same thing" ... so how would they cancel their original /break?

Can we automatically demote elected admins when the match starts?

@HangTimeQW
Copy link
Author

HangTimeQW commented Jan 17, 2021 via email

@mushis
Copy link
Contributor

mushis commented Jan 18, 2021

"A suggestion is that an admin must vote twice the same thing" ... so how would they cancel their original /break?

I see. how about this? if the player is admin, the vote is cast normally, but adding "type yes in the console to enforce last command as admin". something like that. if the admin doesn't type yes, they could cancel their vote.

meag added a commit to meag/ktx that referenced this issue Jan 25, 2021
meag added a commit to meag/ktx that referenced this issue Jan 25, 2021
@tcsabina
Copy link
Collaborator

About 1) of the original post:
I don't see that a 'break' from an elected admin immediately ends the game. Is this for sure? I am testing with 1on1 on my local setup, but the 'break' from the elected admin only counts as one break, and not stopping the game.
Is this different with 2on2, 4on4?

About 3):
I kind of agree with mushi. This could be miss used...
I don't see a good solution...

@HangTimeQW
Copy link
Author

When I wrote this request an elected adminended the game (unintentionally) immediately with /break on multiple occaisions so unless the code has changed since, that's how it works.

@tcsabina
Copy link
Collaborator

hmm, okay....

@meag ,
I see that you have tackled item 2) in your fork. Are you planning to merge it back anytime soon, with those other additions that you have made in the past months?

@tcsabina
Copy link
Collaborator

tcsabina commented May 18, 2021

The 2 changes @meag have made in his fork are part of PR #153. This is tackling item 2).
Item 1) is kind of obsolete. As an elected admin will lose his admin rights upon match start, his 'break' won't stop the match.
Item 3) will not be implemented, as that is not that trivial.

@tcsabina
Copy link
Collaborator

tcsabina commented May 25, 2021

Issue reopened, as the implemented solution (to revoke the admin rights upon match start) is not a good solution.
It needs to be reverted, so and elected admin stays and admin upon match start, and a new feature shall be added:

@tcsabina
Copy link
Collaborator

PR #160 reverts the changes that made elected admins losing admin rights upon match start

tcsabina added a commit that referenced this issue May 25, 2021
Elected admin tweaks (#127): reverted: elected admins lose rights when match starts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants