summaryrefslogtreecommitdiff
path: root/lua/autorun/town.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/autorun/town.lua')
-rw-r--r--lua/autorun/town.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/autorun/town.lua b/lua/autorun/town.lua
index 2805f7c..40131df 100644
--- a/lua/autorun/town.lua
+++ b/lua/autorun/town.lua
@@ -137,5 +137,8 @@ function loadtownies()
end)
end
-concommand.Add("artery_loadtownies",loadtownies)
+concommand.Add("artery_loadtownies",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
+ loadtownies()
+end)
hook.Add("InitPostEntity","load_lua",loadtownies)