Comments (7)
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.
ip bans use local epoch time (aka, unix timestamp) or -1 for perm. 99% sure on this one.
from pybescanner.
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.
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.
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.
Just to second Matthew here - with them being epoch timestamps the time the server has been running should be irrelevant.
from pybescanner.
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)
- Fix [0,0,0] spam rule HOT 1
- Please update scripts.banlist HOT 1
- Feature Request HOT 3
- Spamlist not working HOT 4
- Kick code not working HOT 1
- Filter Updates HOT 4
- Planned Feature -- Harvest IPs for banning. HOT 16
- Upcoming Filter Changes - Done (just needs testing) HOT 2
- Ban Filters > Kick Filters - Fixed (just needs testing) HOT 1
- Planned Feature -- Update Bans HOT 4
- Planned Feature -- Update Battleye Filters HOT 1
- Spam Rule HOT 7
- Internal Ban Storage HOT 1
- UnboundLocalError: local variable 'ban_time' referenced before assignment HOT 1
- Error somewhere? HOT 1
- Error in latest commit HOT 3
- per filter ban length HOT 4
- PublicVariable-unknow "player + PUID"
- Undocumented config option "Logs Directory"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pybescanner.