summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon <brandon@bremaweb.com>2014-05-03 22:56:20 -0500
committerBrandon <brandon@bremaweb.com>2014-05-03 22:56:20 -0500
commita0f84c3ae6bce5f287e07d4208b6eaac0cfbb17f (patch)
tree0e0a1e4cea8a688ca19eb34f300b2be94f01430d
parent0fc282313e1e4ace55f479c736d644f7ad0cba0e (diff)
use correct function to unban player
-rw-r--r--protection.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/protection.lua b/protection.lua
index 5adcd7e..e3ce8d2 100644
--- a/protection.lua
+++ b/protection.lua
@@ -90,7 +90,7 @@ function landrush.do_autoban(pos,name)
landrush.offense[name].lastpos = nil
if ( landrush.offense[name].bancount < 4 ) then
- minetest.after( (banlength * 60), minetest.unban_name_or_ip,name )
+ minetest.after( (banlength * 60), minetest.unban_player_or_ip,name )
end
return