Giter VIP home page Giter VIP logo

Comments (7)

Torndeco avatar Torndeco commented on September 16, 2024

I will add it into pyBEscanner as a config option, once i know how it works.

If u could find out for me find link to info on ban timestamps for bans.txt
i.e
Format & Timezone used local ?

thx

from pybescanner.

matthewlenz avatar matthewlenz commented on September 16, 2024

ip bans use local epoch time (aka, unix timestamp) or -1 for perm. 99% sure on this one.

from pybescanner.

Torndeco avatar Torndeco commented on September 16, 2024

Thanks only recently encounter epoch timestamps, python is more a hobby.
Will be added in later this week, already coded
Want to get server back up & running to test the changes, to avoid breaking app again

from pybescanner.

k4n30 avatar k4n30 commented on September 16, 2024

Timelengths on bans in the bans.txt reset every server restart. For this reason times would need to be stored externally.

Eg: Ban someone for 8 hours but your server restarts every 4 hours. The 8 hour timelimit resets on the server restart effectively making it permanent.

from pybescanner.

matthewlenz avatar matthewlenz commented on September 16, 2024

You specify a time length in minutes when you ban someone via rcon. the bans.txt stores them as epoch times (the number of seconds since Dec 31st 1969). I temp ban people all the time for combat logging and do not have single entry that was converted to perm. I know this because I specifically state 'combat logging, 2 day' in the entry. fyi. the python time module has everything you need.

from pybescanner.

Nashable avatar Nashable commented on September 16, 2024

Just to second Matthew here - with them being epoch timestamps the time the server has been running should be irrelevant.

from pybescanner.

Torndeco avatar Torndeco commented on September 16, 2024

Added in latest committed.... should be working...
Needs testing etc, my servers are barely up & running atm i.e need to start bribing players to hop on :P

from pybescanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.