Poll

Do you like that idea?

F11
F12

Author Topic: Additional server commands for temporary banning and muting  (Read 6031 times)

0 Members and 3 Guests are viewing this topic.

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Additional server commands
« Reply #20 on: February 17, 2013, 06:19:56 am »
i'd vote for w/d/h/m format, admins are often banning in-game, while they're playing, so alt-tabbing and calculating minutes to weeks is not really comfortable
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Additional server commands
« Reply #21 on: February 17, 2013, 09:03:30 am »
From my experience majority of bans are given for short amount of time for not following server's rules(60 to 600 minutes). Other than that are perma bans for hackers.

Im chill like that

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Additional server commands
« Reply #22 on: February 17, 2013, 09:47:22 pm »
I just found out that the soldat documentation is outdated (what a surprise).
Commands like
Code: [Select]
tempban are missing.

From what I see there are some issues with the time periods you can enter.
For example:
Code: [Select]
RESPAWNTIME seconds
Code: [Select]
TIMELIMIT minutes
Code: [Select]
MAXRESPAWNTIME seconds
Code: [Select]
TEMPBAN BAN players name or players number minutes
So adding a time format could help.

There is an ISO-8601 for time and durations but it looks like this:
P3Y6M4DT12H30M5S or P0003-06-04T12:30:05
P23DT23H

I don't think a lot of people would enjoy typing that (have fun with pressing the shift key).

I would extend the w,d,h,m format and use what quakenet uses for their tempbans but also allow mo for months:
years     y
months    M
months    mo
weeks     w
days      d
hours     h
minutes   m
seconds   s
---
number    N


Format:
NyNMNwNdNhNmNs
or
NyNmoNwNdNhNmNs

Examples:
2y3M4w6d7h1m55s     (2 years, 3 months, 4 weeks, 6 days, 7 hours, 1 minute, 55 seconds)
2y3mo4w6d7h1m55s    (2 years, 3 months, 4 weeks, 6 days, 7 hours, 1 minute, 55 seconds)
3M                  (3 months)
3mo                 (3 months)
29m                 (29 minutes)
2y                  (2 years)
1h30m               (1 hour, 30 minutes)


optionally we could adapt it to allow real or floating point numbers:
1/2y or 0.5y or 0,5y for half a year

The minecraft extension essencials plugin uses tempbans with spaces in quotation marks:
"2y 3mo 4w 6d 7h 1m 55s"    (2 years, 3 months, 4 weeks, 6 days, 7 hours, 1 minute, 55 seconds)

Since Soldat checks for bans only once a minute, seconds dont't make sense and anything below 1 minute will be ignored (e.g 0.5m).

We could allow banning by seconds and set the default banning time to work second wise so that
Code: [Select]
/tempban MM 30 would ban for 30 seconds instead of 30 minutes but that would require a less stupid ban check :P (it's not really optimized currently).
This would eliminate the "is it a minute or second" issue but then people need to use 30m or something for banning in minutes again.

Since the command parsing need to get refactored anyways I wouldn't mind to do it (a general cleanup and documentation update would be nice).
It will not happen for the next version (maybe the one after that - if we are lucky).

Using
Code: [Select]
/tempban MM without a time can be problematic for certain usernames but I setting a default ban time for missing time periods could be helpful.
I think when you write wrong ban times however it should ignore the ban completely (so the default ban time will not be applied in this case).
« Last Edit: February 17, 2013, 10:17:25 pm by Shoozza »
Rules
Tools: ARSSE - SARS - SRB - chatMod

Offline Mittsu

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 617
Re: Additional server commands for temporary banning and muting
« Reply #23 on: February 18, 2013, 04:39:31 am »
you can ignore banning by seconds completely, it's not worth any fuss over it
Realistic-Soldat.net
<+elerok> soldat is dead
<+AThousandD> shit happens

Offline Vos

  • Soldier
  • **
  • Posts: 231
    • http://kosoldat.forumer.com/index.php
Re: Additional server commands for temporary banning and muting
« Reply #24 on: September 03, 2013, 07:07:02 am »
erm since no1 mentioned anything regarding this anymore lately (atleast that's what i believe)

Is any of this implemented yet? I believe not, when will it be?

Is there any easy way to tempban hwids now at all?

edit: just found mighty's punish script (http://forums.soldat.pl/index.php?topic=40060.0) is this the best alternative? it looks pretty good once you're used to the commands
« Last Edit: September 03, 2013, 07:16:54 am by Vos »
For signatures, you are allowed only one image in your signature which may not be wider and taller than 300 and 125 pixels, and may not be over 20kB in file size. No BMPs are allowed.