From 923c8ea53777a6cbbde2a4d22dfef1ca3966c7b7 Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Thu, 8 Aug 2019 22:40:00 +0700 Subject: [PATCH] Add /abancheck chat command --- init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/init.lua b/init.lua index c3d4041..99796b2 100644 --- a/init.lua +++ b/init.lua @@ -56,6 +56,19 @@ function advancedban.unban(name) return found end +minetest.register_chatcommand("abancheck", { + params = "", + description = "Check ban for a player with given name", + privs = {}, + func = function(name, param) + if advancedban.is_banned(param) then + minetest.chat_send_player(name, param .. " is in advancedban list.") + else + minetest.chat_send_player(name, param .. " is not in advancedban list.") + end + end +}) + minetest.register_chatcommand("aban", { params = "", description = "Ban a player with given name",