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!

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Metabans plugin  (Read 6045 times) Bookmark and Share
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« on: June 06, 2011, 06:13:36 AM »



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 25, 2011, 04:45:46 PM by Courgette » Logged


Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: June 06, 2011, 06:22:03 AM »

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.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #2 on: June 08, 2011, 11:05:05 PM »

Nice job Courgette!

Does this synchronize bans from B3 made prior to Metabans plugin installation too?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: June 09, 2011, 03:49:52 AM »

Thanks Smiley

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.
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #4 on: June 09, 2011, 08:25:08 AM »

metabans v0.4 released

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

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3,Cod2,Cod4,Cod5,Cod6,Cod7
Posts: 257
Offline Offline
WWW
« Reply #5 on: June 09, 2011, 09:28:12 AM »

error need plugin meanstdv ?

http://www.pastie.org/2043715
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: June 09, 2011, 03:05:06 PM »

you need B3 1.6.1
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3,Cod2,Cod4,Cod5,Cod6,Cod7
Posts: 257
Offline Offline
WWW
« Reply #7 on: June 09, 2011, 03:21:12 PM »

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
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: June 09, 2011, 03:38:10 PM »

b3/functions.py
Logged

Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #9 on: June 10, 2011, 01:11:37 AM »

Getting an error message when using !metabanssync

Code:
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?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: June 10, 2011, 04:57:07 AM »

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 10, 2011, 04:07:16 PM by Courgette » Logged

Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 3
Offline Offline
« Reply #11 on: June 10, 2011, 06:15:20 AM »

In version 1.4.1 when using !metabanssync receive an error message:
Code:
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()))')]"
Logged
Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #12 on: June 10, 2011, 06:55:47 AM »

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:
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()))')]"
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #13 on: June 10, 2011, 07:41:21 AM »

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, 07:45:14 AM by Courgette » Logged

Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #14 on: June 10, 2011, 08:07:55 AM »

Ah beautiful mate! Works like a charm now.
Logged
Tags: Ban  banlist  metabans  plugin 
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal