haxball / haxball-issues

115 stars 43 forks source link

Master Admins ban #1271

Open 1234414 opened 3 years ago

1234414 commented 3 years ago

When master admis ban a player, they are banned. How do I make them not banned?

var banPunishment = false;

if (ban && byPlayer !== null && byPlayer.id !== 0) { room.clearBan(kickedPlayer.id); if (byPlayer.id !== kickedPlayer.id) room.kickPlayer(byPlayer.id, "Banning players is not allowed !", banPunishment); } }

thenorthstar commented 3 years ago

Duplicate of #1236. Close this issue and don't duplicate old issues more. Thanks.

1234414 commented 3 years ago

Not like that. No one in the room can ban player. I want master admins to be able to ban other players but regular admins can't. @thenorthstar

1234414 commented 3 years ago

There is a code out there that normal administrators cannot ban main managers. @thenorthstar

thenorthstar commented 3 years ago

Not like that. No one in the room can ban player. I want master admins to be able to ban other players but regular admins can't. @thenorthstar

@1234414 OK. I understood but the current API of haxball unfortunately cannot protect the players to be banned. I think that you want such a code. Is that it?

1234414 commented 3 years ago

No. When normal admins ban any player, they get banned. When you ban any player in Master Admins, it gets banned. I want master admins to be able to ban players.