View Single Post
  #1  
Old 07-22-2010, 12:36 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Banning via script

I know this can be a security concern, but on Era we spend half an hour or so daily banning and unjailing players (virtually all are new Graal# players who are trying out hacking tools) who are caught by automatic hack detection. There is no reason to waste so much time when literally all we do is copy and paste the reason into the ban window and click "Apply". This can all be done by script very easily.

The commands I'm requesting are:
  • banAccount(str account, str banType)
  • isAccountBanned(str account) - returns bool - if the player is banned

The isAccountBanned function is so that I can place a friendly message in the server news (where servers often show description etc) saying "Your account is banned. If you have questions, see here" with instructions on contesting a ban.

To add some necessary security, banType is a predefined ban length and reason. Server options like such are declared:
PHP Code:
# days, reason
ban_freezehack=3,"Caught freeze hacking"
ban_wallhack=3,"Caught disabling wall check" 
(or however is most convenient for Stefan)

In addition, the banAccount command should not be able to ban accounts in staff= (server options) or with an adminlevel of 1 or above.
__________________
Reply With Quote