1 (edited by Cooper 2013-03-26 09:29:30)

Topic: Questions about bans in Teeworlds

Hello,

I have 4 questions about bans in the Teeworlds game

1. Where is the ban list? I cant find them on my computer.

2. Is there an possibility to ban an IP range? For example 123.234.***.*** or 123.234.xxx.xxx?

3. If I ban a player, I use the command "[ban] [id] [minutes] [reason]" but how can I ban a player for the rest of his life?

4. Is there an possibility to add a vote ban?

Sorry for my bad english

Sorry for my bad english

2 (edited by Broken 2013-03-26 10:28:32)

Re: Questions about bans in Teeworlds

1. Where is the ban list? I cant find them on my computer.

The server ban list is not stored on the hard drive. Type "bans" in F2.

2. Is there an possibility to ban an IP range? For example 123.234.***.*** or 123.234.xxx.xxx?

Sadly, no.

3. If I ban a player, I use the command "[ban] [id] [minutes] [reason]" but how can I ban a player for the rest of his life?

Ban ID 0, or Ban ID -1. Depending on the mod.

4. Is there an possibility to add a vote ban?

Voting to kick players bans them 5 minutes. This can be allowed/disallowed.

3

Re: Questions about bans in Teeworlds

No bans are stored after the server is shutdown, means you'll have to integrate them to the config.

Broken wrote:

2. Is there an possibility to ban an IP range? For example 123.234.***.*** or 123.234.xxx.xxx?

Yes! Just type ban 123.234. (to be confirmed)

Broken wrote:

3. If I ban a player, I use the command "[ban] [id] [minutes] [reason]" but how can I ban a player for the rest of his life?

ban ID/IP 0

Reference:

        if(Mins)
        {
            if(Mins == 1)
                str_format(Buf, sizeof(Buf), "You have been banned for 1 minute (%s)", pReason);
            else
                str_format(Buf, sizeof(Buf), "You have been banned for %d minutes (%s)", Mins, pReason);
        }
        else
            str_format(Buf, sizeof(Buf), "You have been banned for life (%s)", pReason);
Not Luck, Just Magic.

4

Re: Questions about bans in Teeworlds

Two things there are available in 0.6.2 (or trunk):

1: Actually there is no ban list stored on your hard drive but you can save them manually with "bans_save".

2: Yes, there is a ban_range [<lower ip> <upper ip> <time> <reason>] command .

5

Re: Questions about bans in Teeworlds

TT <3 wrote:

2: Yes, there is a ban_range [<lower ip> <upper ip> <time> <reason>] command .

Ah, must've mixed it up with the forum ban system then. Thanks!

Not Luck, Just Magic.

6 (edited by Cooper 2013-03-26 14:40:08)

Re: Questions about bans in Teeworlds

Dune: "No bans are stored after the server is shutdown, means you'll have to integrate them to the config."
How can I integrate them to the config?
Dune: "Yes! Just type ban 123.234. (to be confirmed)"
If I do this it comes an error message. Why?


Edit:

Oh I am so happy I love the version 0.6.2 thanks. The features ban_range and bans_save are very good. But can players with the version 0.6.1 or 0.6.0 join if I use the server version 0.6.2?


Edit2:

I have banned 123.234.1.2 for life and saved the banlist with bans_save s. The IP is now stored in the file "s", but if I restart my server it doesnt load the file "s". If I open F2 and type bans it comes the message "0 bans". Why?

Sorry for my bad english

Sorry for my bad english

7

Re: Questions about bans in Teeworlds

Cooper wrote:

Edit2:

I have banned 123.234.1.2 for life and saved the banlist with bans_save s. The IP is now stored in the file "s", but if I restart my server it doesnt load the file "s". If I open F2 and type bans it comes the message "0 bans". Why?

Sorry for my bad english

Just put

exec c

into your server config.

8

Re: Questions about bans in Teeworlds

Thanks

Sorry for my bad english

9

Re: Questions about bans in Teeworlds

Sorry heinrich5991, but shouldn't that be

exec s

?

10

Re: Questions about bans in Teeworlds

firecracker wrote:

Sorry heinrich5991, but shouldn't that be

exec s

?

Yes, that's correct, but why the "sorry"? His fault for making the mistake, not yours. There's no reason to apologize for something you did not do.

Ex-King of Teeworlds

11

Re: Questions about bans in Teeworlds

Yes: If you save the banlist with bans_save to s, then exec s. If you save the banlist to c, then exec c.

Sorry for my bad english

12

Re: Questions about bans in Teeworlds

yemDX wrote:

Yes, that's correct, but why the "sorry"? His fault for making the mistake, not yours. There's no reason to apologize for something you did not do.

That is called politeness. You should educate yourself on it.