Ulysses Stuff > Releases

UBan -- Global ban system. Ban users from all servers connected to a single DB!

(1/40) > >>

Megiddo:
Current version: 1.1

Do 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.html

Table structure (Use this code in your SQL client)

--- Quote ---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 )
);
--- End quote ---

Download: http://ulyssesmod.net/archive/UBan-v1_1.zip

LoC:
This is a great script and the most of it works fine for me, but the IP wasn't saved all right ("1049437792" instead of "62.141.38.96")

And could you tell me how I can overwrite the normal ULX ban-functions the gban-functions?
(So if someones uses the admin-menu to ban someone, this guy will glob-baned)

Megiddo:
They are saved right silly. :)

You can remove the original functions and just rename the gban ones. Or even better, add the gban functions to the menu.

p1cwh0r3:
Well, going to give this a run. I'm assuming all would be fine with the new GMod?

Megiddo:
Yes

Navigation

[0] Message Index

[#] Next page

Go to full version