summaryrefslogtreecommitdiff
path: root/server/src/global_protect.lua
blob: 27f84191b58929466c83265fc321dc1fc769edc9 (plain)
1
2
3
4
5
6
7
8
9
10
local mt = {}
setmetatable(_G, mt)

function mt:__index(k)
    error(('Read undefined global: [%s]'):format(k), 2)
end

function mt:__newindex(k, v)
    error(('Save global: [%s] = [%s]'):format(k, v), 2)
end