Current version: 1.1Do you run multiple servers or have close friends that you run servers with? Have you ever wanted to instantaneously ban someone from all these servers at once? Then look no farther, UBan is for you!
Please note that you'll be setting up your own database to store your global bans. There is not a global ban list that all users of this script get, you set up a list on your own for a ring of trusted servers.Installation:Extract the uban folder to garrysmod/addons
YOU ABSOLUTELY MUST HAVE THE GM_MYSQL MODULE (
http://forums.facepunchstudios.com/showthread.php?t=241247)
Unless you plan on using the lua functions directly, you must also have ULX.
You'll also need to set up the database. The MySQL code to do this is inside the uban.lua file, or you can get it from the bottom of this post. You'll need to use this code in your MySQL client of choice while connected to your database (SSH, PHPMyAdmin, etc)
Last, change the config at the top of uban.lua to your DB details.
Usage:ulx gban (user) (time) (comment) -- Ban a user by name in the server. Time is in minutes, use 0 for perma.
ie: ulx gban Megiddo 0 "Dirty spammer"
ulx gbanid (steamid) (time) (comment)
ulx gunbanid (steamid)
FAQs:Q: Can I still keep my local bans?
A: Yes, UBan compliments the existing ban system. It will leave local bans untouched, and you can continue to locally ban users if you wish.
Q: Can I get access to _your_ database?
A: No. Maybe read-only access down the road.
Q: How do I set up the MySQL table?
A: Get someone who can help you.
Q: Can you help me set up MySQL?
A: No.
Q: What's up with this extra information in the DB that's not used by UBan?
A: Future use. Another community server admin ([WCA]PHPirate) has sponsored this project and is making a PHP viewer script. You can see an initial demo of this script here:
http://forums.planetwca.com/banned.htmlTable structure (Use this code in your SQL client)CREATE TABLE gbans (
id INT UNSIGNED PRIMARY KEY NOT NULL UNIQUE AUTO_INCREMENT,
steamid CHAR( 12 ) NOT NULL,
name CHAR( 31 ),
time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
unban_time TIMESTAMP NOT NULL DEFAULT 0,
comment CHAR( 128 ),
serverip INT UNSIGNED,
serverport SMALLINT UNSIGNED NOT NULL DEFAULT 27015,
adminname CHAR( 31 ),
adminsteamid CHAR( 12 )
);
Download: http://ulyssesmod.net/archive/UBan-v1_1.zip