Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
feat(server): add non-Personal antifarm
Browse files Browse the repository at this point in the history
  • Loading branch information
N-fire committed Apr 15, 2022
1 parent 2fc45b0 commit e86b34e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Config.headshotBones = {
}

Config.antiFarm = {
enable = true, size = 70.0, time = 10 * 60, maxAmount = 3
enable = true, size = 70.0, time = 10 * 60, maxAmount = 3, personal = true
}


Expand Down
3 changes: 3 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ end)

function Antifarm(source,coords)
if Config.antiFarm.enable == false then return true end
if Config.antiFarm.personal == false then
source = 1
end

local curentTime = os.time()
if not next(antifarm) or not next(antifarm[source]) then -- table empty
Expand Down

0 comments on commit e86b34e

Please sign in to comment.