Raised This Month: $51 Target: $400
 12% 

MySQL Banning - Single DB - Cover Multiple Servers V3.0 [10 Jun 08]


Post New Thread Reply   
 
Thread Tools Display Modes
Godless
New Member
Join Date: Jan 2008
Old 01-22-2008 , 06:15   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #11

I played arround a bit, and it seem to crash on the SQL_Connect Handle.

There arnt any errors in the log or the console.
Godless is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 01-22-2008 , 06:52   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #12

Fine Fine, very nice Job

Have i the permission to add the SQL-Management for this Plugin to the Sourcemod-Webadmin?

It will be a nice option to "search/edit/delte" bans for a admin via Webinterface
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 01-22-2008 at 06:54.
HSFighter is offline
Send a message via ICQ to HSFighter
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 01-22-2008 , 07:10   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #13

Quote:
Originally Posted by HSFighter View Post
Fine Fine, very nice Job

Have i the permission to add the SQL-Management for this Plugin to the Sourcemod-Webadmin?

It will be a nice option to "search/edit/delte" bans for a admin via Webinterface
YES! That saves me writing a pretty front end for it.

Assume that the table fields will not change, as I accounted for what could possibly be needed when creating the table in the first place.

Also that will be doubly handy as I use your web-admin interface HSFighter :-)

Just to confirm the table is:

PHP Code:
 DROP TABLE IF EXISTS `mysql_bans`;
CREATE TABLE IF NOT EXISTS `mysql_bans` (
  `
idint(11NOT NULL auto_increment,
  `
steam_idvarchar(32NOT NULL,
  `
player_namevarchar(65NOT NULL,
  `
ipaddrvarchar(24NOT NULL,
  `
ban_lengthint(1NOT NULL default '0',
  `
ban_reasonvarchar(100NOT NULL,
  `
banned_byvarchar(100NOT NULL,
  `
timestamptimestamp NOT NULL default '0000-00-00 00:00:00' on update CURRENT_TIMESTAMP,
  
PRIMARY KEY  (`id`),
  
UNIQUE KEY `steam_id` (`steam_id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=
Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Solltex
Member
Join Date: Dec 2004
Old 01-22-2008 , 14:43   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #14

need ban by IP to lan servers.
Solltex is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 01-23-2008 , 16:33   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #15

Quote:
Originally Posted by Solltex View Post
need ban by IP to lan servers.
Done in a major re-write and tidy up!

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Solltex
Member
Join Date: Dec 2004
Old 01-24-2008 , 00:57   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #16

nice
Solltex is offline
HSFighter
Veteran Member
Join Date: Aug 2007
Location: Flensburg - Germany
Old 02-01-2008 , 03:49   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #17

Hey ho,

the integration to the webinterface is 90% Completed

1. Suggestion:
Is it possible that the Plugin write his Version and Author to the Database, when the Plungin be loadet? (from public Plugin:myinfo)
PHP Code:
CREATE TABLE IF NOT EXISTS `mysql_bans_infos` (
  `
idint(11NOT NULL auto_increment,
  `
versionvarchar(12NOT NULL,
  `
authorvarchar(32NOT NULL,
  `
name`  varchar(32NOT NULL,
  `
description`  varchar(255NOT NULL,
  `
url`  varchar(64NOT NULL,
   
PRIMARY KEY  (`id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=
It will be very Practically for the (Plugin Management) in the Webinterface!

2. Suggestion:
Can you add "Country" Column in the "mysql_bans" Table,
and get country data from the banned player?

3. Suggestion:
Can you add "sid" (serverid) Column in the "mysql_bans" Table,
so i can define a BAN (0 = Web-Ban, 1 = Server-BAN)?
__________________



Sorry for my very bad english
Greetings HSFighter

Last edited by HSFighter; 02-01-2008 at 12:37.
HSFighter is offline
Send a message via ICQ to HSFighter
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 02-01-2008 , 13:05   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #18

Some answers for you:

Quote:
Originally Posted by HSFighter View Post
the integration to the webinterface is 90% Completed
Spot on!

Quote:
Originally Posted by HSFighter View Post
1. Suggestion:
Is it possible that the Plugin write his Version and Author to the Database, when the Plungin be loadet? (from public Plugin:myinfo)
PHP Code:
CREATE TABLE IF NOT EXISTS `mysql_bans_infos` (
  `
idint(11NOT NULL auto_increment,
  `
versionvarchar(12NOT NULL,
  `
authorvarchar(32NOT NULL,
  `
name`  varchar(32NOT NULL,
  `
description`  varchar(255NOT NULL,
  `
url`  varchar(64NOT NULL,
   
PRIMARY KEY  (`id`)
ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=
It will be very Practically for the (Plugin Management) in the Webinterface!
Yes it is indeed. But see comments below, noting that we are dealing with multiple servers.

Quote:
Originally Posted by HSFighter View Post
2. Suggestion:
Can you add "Country" Column in the "mysql_bans" Table,
and get country data from the banned player?
Errr not sure, would have to look at this in more detail. Although it woudl eb relant upon the geoip db finding the country. That said it works most of the time and is a case of borrowing the

Quote:
Originally Posted by HSFighter View Post
3. Suggestion:
Can you add "sid" (serverid) Column in the "mysql_bans" Table,
so i can define a BAN (0 = Web-Ban, 1 = Server-BAN)?
Yes, although I think we could do better than that and instead not only identify which 'place' [web or server based], but the server IPORT it was made upon as well.

Whether we do that by convars, web based with Server ID's or something else I'm not sure.

---

I need to find some time to go back over what I have done before and also add the select case statement in for the timed bans and test that fully too.

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
mplostcause
Junior Member
Join Date: Feb 2008
Old 02-07-2008 , 18:17   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #19

I've been having some problems with our plugin and I was wondering if I could get some help with it. I decided to use your system instead of Sourcebans because I didn't want to use a web front-end. I installed just as instructed. But when I go to ban someone I run into some problems.

Just typing "mysql_ban" or "mysql_addban" in console will describe what they do but actually using them I always get the error "Unknown command" for both of them and nothing happens in game as far as individuals actually being banned and nothing makes it to the mysql tables.
mplostcause is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 02-07-2008 , 20:05   Re: MySQL Banning - Single DB - Cover Multiple Servers
Reply With Quote #20

Quote:
Originally Posted by mplostcause View Post
I've been having some problems with our plugin and I was wondering if I could get some help with it. I decided to use your system instead of Sourcebans because I didn't want to use a web front-end. I installed just as instructed. But when I go to ban someone I run into some problems.

Just typing "mysql_ban" or "mysql_addban" in console will describe what they do but actually using them I always get the error "Unknown command" for both of them and nothing happens in game as far as individuals actually being banned and nothing makes it to the mysql tables.
First off, I assume the tables is correctly made etc..

Try putting:
mysql_bans_error_check 1

In your sourcemod.cfg file and changemaps, the plugin is set to be extremely vocal in what its doing with this enabled.

Then banning yourself, so in my case it woudl be:

mysql_ban mogg 0 "Ya n00blet"

Now if you're not banned, check the error log and the normal logging file for any messages, they're prefixed with [MySQL Bans]

I'm sure its working ok, as we have it running on 5 of our servers (CSS & TF2) atm with ~30 core admins that have access to it and so far its been them typing the commands wrong.

Matt
__________________

Last edited by MoggieX; 02-07-2008 at 20:07.
MoggieX is offline
Send a message via Skype™ to MoggieX
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode