thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Metabans plugin  (Read 30047 times)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Metabans plugin
« on: June 06, 2011, 04:13:36 PM »


Description
This plugin will link your game server to your Metabans account.

As such :
 - all bans found from your Metabans account will be applied on the server.
 - all bans found from Metabans accounts you follow will be applied on your server if not protected on your account.
 - all bans made from B3 will be sent to Metabans
 - when a player connects to your game server, its status will be checked from
   your Metabans account and B3 will tell connected admins if that player is
   marked as watched or protected.
 
This plugin also provides the following commands :
 - !metabanscheck <player> - display Metabans info for player
 - !metabanswatch <player> [<reason>] - mark a player as watched
 - !metabansprotect <player> [<reason>] - mark a player as protected
 - !metabansclear <player> [<reason>] - clear any Metabans mark on the player
 - !metabanssync - send all active B3 bans to metabans.com (be nice with metabans.com and use this command only once)

Visit http://metabans.com for more information


Work for the following games :
  • CoD4
  • CoD5
  • CoD6
  • CoD7
  • BF:BC2
  • MoH
  • Homefront
  • BF3

Download

Who's using Metabans ?
Please post your metabans account on this topic so we can follow you
« Last Edit: October 26, 2011, 02:45:46 AM by Courgette »

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Metabans plugin
« Reply #1 on: June 06, 2011, 04:22:03 PM »
This I like. A lot.

Meta Bans: Think of streaming bans. But who controls the banlist? You do. By following people (twitter idea), you subscribe to their ban list...
Very nice idea IMO.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Prez

  • Beta Testers
  • Full Member
  • *
  • Posts: 118
    • cgs-clan.com
Re: Metabans plugin
« Reply #2 on: June 09, 2011, 09:05:05 AM »
Nice job Courgette!

Does this synchronize bans from B3 made prior to Metabans plugin installation too?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #3 on: June 09, 2011, 01:49:52 PM »
Thanks :)

Does this synchronize bans from B3 made prior to Metabans plugin installation too?
Not yet. I'm working on something to do just that with Phogue. But at the moment if you have lots of bans there are too many issues.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #4 on: June 09, 2011, 06:25:08 PM »
metabans v0.4 released

Prior versions won't work any more in a few days due to changes at metabans.com

Offline Platanos

  • Sr. Member
  • ****
  • Posts: 296
    • The Last Unit
Re: Metabans plugin
« Reply #5 on: June 09, 2011, 07:28:12 PM »
error need plugin meanstdv ?

http://www.pastie.org/2043715

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #6 on: June 10, 2011, 01:05:06 AM »
you need B3 1.6.1

Offline Platanos

  • Sr. Member
  • ****
  • Posts: 296
    • The Last Unit
Re: Metabans plugin
« Reply #7 on: June 10, 2011, 01:21:12 AM »
the Version before works fine with 1.7dev whats now the difference ?
where is the file meanstdv so i can copy that from 1.6.1

MFG

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #8 on: June 10, 2011, 01:38:10 AM »
b3/functions.py

Offline Prez

  • Beta Testers
  • Full Member
  • *
  • Posts: 118
    • cgs-clan.com
Re: Metabans plugin
« Reply #9 on: June 10, 2011, 11:11:37 AM »
Getting an error message when using !metabanssync

Code: [Select]
110610 05:06:53	VERBOSE	"RCON sending (173.199.110.131:3084) 'tell 1 ^0[^2cGs^0]^7: ^3[pm]^7 ^7There was an error processing your command'"
110610 05:06:53 ERROR 'handler AdminPlugin could not handle event Say: NameError: global name \'time\' is not defined [(\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\parser.py\', 961, \'handleEvents\', \'hfunc.parseEvent(event)\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\plugin.py\', 157, \'parseEvent\', \'self.onEvent(event)\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\plugin.py\', 175, \'onEvent\', \'self.handle(event)\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\plugins\\\\admin.py\', 222, \'handle\', \'self.OnSay(event)\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\plugins\\\\admin.py\', 367, \'OnSay\', \'results = command.execute(data, event.client)\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\plugins\\\\admin.py\', 2009, \'execute\', \'self.func(data, client, copy.copy(self))\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\extplugins\\\\metabans\\\\plugin.py\', 373, \'cmd_metabanssync\', \'active_bans = self._getAllActiveBans()\'), (\'C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_RZ\\\\b3\\\\extplugins\\\\metabans\\\\plugin.py\', 448, \'_getAllActiveBans\', "where += \' and ((time_expire = -1 and time_add > %s) or time_expire > %s)\' % (time.time() - (3*30*24*60*60), time.time())")]'

metabans[dot]com ready to sync already?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #10 on: June 10, 2011, 02:57:07 PM »
Thanks for the report. This bug should be fixed in 1.4.1 0.4.1. Could you try and report please ?

And yes metabans.com is ready for the sync. Note that the sync will only send the permbans issued less than 3 months ago (as the maximum ban length on metabans.com is 3 monthsthe default ban length on metabans is 3 month if duration is not provided. But no permanent ban) and all your active tempbans.
It will send them to metabans by chunks of 50 until no more are found
« Last Edit: June 11, 2011, 02:07:16 AM by Courgette »

Offline zet

  • Newbie
  • *
  • Posts: 3
Re: Metabans plugin
« Reply #11 on: June 10, 2011, 04:15:20 PM »
In version 1.4.1 when using !metabanssync receive an error message:
Code: [Select]
110611 00:51:30	DEBUG	'AdminPlugin: OnSay handle 5:"!metabanssync"'
110611 00:51:30 DEBUG 'AdminPlugin: Handle command !metabanssync'
110611 00:51:30 VERBOSE "RCON sending (95.154.113.66:28961) 'tell 0 ^0(^2b3^0)^7: ^3[pm]^7 ^7There was an error processing your command'"
110611 00:51:30 ERROR "handler AdminPlugin could not handle event Say: AttributeError: 'DatabaseStorage' object has no attribute '_createPenaltyFromRow' [('/home/game/servers/cod4_HC/bbot/b3/parser.py', 961, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/game/servers/cod4_HC/bbot/b3/plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('/home/game/servers/cod4_HC/bbot/b3/plugin.py', 175, 'onEvent', 'self.handle(event)'), ('/home/game/servers/cod4_HC/bbot/b3/plugins/admin.py', 222, 'handle', 'self.OnSay(event)'), ('/home/game/servers/cod4_HC/bbot/b3/plugins/admin.py', 367, 'OnSay', 'results = command.execute(data, event.client)'), ('/home/game/servers/cod4_HC/bbot/b3/plugins/admin.py', 2009, 'execute', 'self.func(data, client, copy.copy(self))'), ('/home/game/servers/cod4_HC/bbot/b3/extplugins/metabans/plugin.py', 374, 'cmd_metabanssync', 'active_bans = self._getAllActiveBans()'), ('/home/game/servers/cod4_HC/bbot/b3/extplugins/metabans/plugin.py', 457, '_getAllActiveBans', 'penalties.append(self.console.storage._createPenaltyFromRow(cursor.getRow()))')]"

Offline Prez

  • Beta Testers
  • Full Member
  • *
  • Posts: 118
    • cgs-clan.com
Re: Metabans plugin
« Reply #12 on: June 10, 2011, 04:55:47 PM »
Thanks for the report. This bug should be fixed in 1.4.1. Could you try and report please ?

Still getting an error message:

Code: [Select]
110610 10:51:21	VERBOSE	"RCON sending (173.199.110.25:3084) 'tell 1 ^0[^2cGs^0]^7: ^3[pm]^7 ^7There was an error processing your command'"
110610 10:51:21 ERROR "handler AdminPlugin could not handle event Say: AttributeError: 'DatabaseStorage' object has no attribute '_createPenaltyFromRow' [('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\parser.py', 961, 'handleEvents', 'hfunc.parseEvent(event)'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\plugin.py', 175, 'onEvent', 'self.handle(event)'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\plugins\\\\admin.py', 222, 'handle', 'self.OnSay(event)'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\plugins\\\\admin.py', 367, 'OnSay', 'results = command.execute(data, event.client)'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\plugins\\\\admin.py', 2009, 'execute', 'self.func(data, client, copy.copy(self))'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\extplugins\\\\metabans\\\\plugin.py', 374, 'cmd_metabanssync', 'active_bans = self._getAllActiveBans()'), ('C:\\\\Program Files (x86)\\\\BigBrotherBot_BO_DLC\\\\b3\\\\extplugins\\\\metabans\\\\plugin.py', 457, '_getAllActiveBans', 'penalties.append(self.console.storage._createPenaltyFromRow(cursor.getRow()))')]"

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Metabans plugin
« Reply #13 on: June 10, 2011, 05:41:21 PM »
Note: I said it was fixed in v1.4.1 earlier, while I should have said in v0.4.1

That last issue should be fixed in v0.4.2


Also I created this topic so we can follow each others easily on metabans
« Last Edit: June 10, 2011, 05:45:14 PM by Courgette »

Offline Prez

  • Beta Testers
  • Full Member
  • *
  • Posts: 118
    • cgs-clan.com
Re: Metabans plugin
« Reply #14 on: June 10, 2011, 06:07:55 PM »
Ah beautiful mate! Works like a charm now.

 


Rate this page +1 at Google Search

anything