That part of code is thoroughly commented and you just have to read what the comments say.
player_id is ID of player who is attempting to ban, value_id is ID of player who player_id is trying to ban.
Replace 1111111s with game IDs (the IDs shown when someone joins the server):
- Where it says # only these admins can ban other admins. you replace 1111111s with IDs of admin who can ban other admins.
- Few lines below (where value_id is compared) you do the same for admins who can't be banned
You just add or remove lines depending on how many main or unbanable admins you have, while keeping in mind this_or_next, if you are not sure how this_or_next work look it up.
You can try to copy those tests into kick event as well, but that makes no sense, if it comes to that (main admin kicking lesser admin) you will want to use ban instead.
No I got the ban part working, I just wanted kicks to work too, because in reality I can just ban an admin from the control panel and restart server pretty quickly if something really warranted it. Just want help with kicking. I tried copying the code into the kick section but had errors with admin working properly
Sent from my SM-G930VC using Tapatalk