A Simple ULX Module that enables banning players from interacting with props in TTT
Credits: The XGUI portion of this addon is a modified version of the default ulx ban page, located here: https://github.com/Nayruden/Ulysses/tree/master/ulx
This module requires mysqloo
Make sure you properly configure your SQL server below
--]]
require("mysqloo")
localdb_prefix=""--Leave this if you don't know what to do here
ULib.ucl.registerAccess("ulx unpropbanall",ULib.ACCESS_SUPERADMIN,"Ability to unban all propban entries","Other")-- Permission for admins to unban players banned by other admins.
ULib.ucl.registerAccess("ulx editpropbanall",ULib.ACCESS_SUPERADMIN,"Ability to edit all propban entries","Other")-- Permission for admins to edit bans made by other admins.
localquery="UPDATE "..db_prefix.."bans SET ends = created + "..bantime
query=query..", length = "..bantime..", name = '"..propban_database:escape(updateName).."', reason = '"..propban_database:escape(reason).."' WHERE authid = '"..propban_database:escape(steamid).."' and RemoveType is null"
pbSQLQuery("SELECT a.user as admin, b.aid, b.bid, b.sid, b.name, b.reason, b.authid, b.created, b.ends FROM "..db_prefix.."bans b INNER JOIN "..db_prefix.."admins a ON b.aid = a.aid WHERE b.RemoveType is null ORDER BY b.created DESC LIMIT "..menuLimit,qTab)