locales and wholesale

This commit is contained in:
Mustache Dom committed 2026-01-22 02:08:35 -07:00
1 parent c1c8b8cb86
commit fc8a623067
15 files changed
+356 -459

No files matched your search

+3 -3
View File
@@ -2,6 +2,7 @@ local timeOutPlayers = {}
local playerRep = {}
local playerWarnings = {}
local trollExploiters = true
local function trollPlayer(src)
if not trollExploiters then return end
CreateThread(function()
@@ -40,8 +41,7 @@ end
function timeOut(src, event)
if timeOutPlayers[src] then
local first, last = Bridge.Framework.GetPlayerName(src)
Bridge.Prints.Warn(Bridge.Language.Locale('Catches.onCooldownWarn', first .. ' ' .. last, event))
Bridge.Prints.Warn(Bridge.Language.Locale('Catches.onCooldownWarn', Bridge.Framework.GetPlayerIdentifier(src), event))
playerWarnings[src] = (playerWarnings[src] or 0) + 1
if playerWarnings[src] >= 5 then
trollPlayer(src)
@@ -156,4 +156,4 @@ Bridge.Callback.Register('md-drugs:server:GetRep', function(source, cb, args)
return rep
end)
--TODO: fix versioncheck
Bridge.Version.VersionChecker('Mustachedom/md-drugs/', false)
Bridge.Version.VersionChecker('Mustachedom/md-drugs', false)