From 41ccde3f781c65fd4de73093102d72a7c295a757 Mon Sep 17 00:00:00 2001 From: salva <24988418+salvadj1@users.noreply.github.com> Date: Sat, 15 Sep 2018 20:08:03 +0200 Subject: [PATCH] New console command Added the Possibility of Unban all players from the console --- FougeritePlugins/BannedPeople/BannedPeople.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/FougeritePlugins/BannedPeople/BannedPeople.py b/FougeritePlugins/BannedPeople/BannedPeople.py index 7ef9265..426a6f0 100644 --- a/FougeritePlugins/BannedPeople/BannedPeople.py +++ b/FougeritePlugins/BannedPeople/BannedPeople.py @@ -1,5 +1,5 @@ __author__ = 'DreTaX' -__version__ = '1.7.9' +__version__ = '1.8.0' import clr @@ -195,6 +195,11 @@ def On_Console(self, Player, ConsoleEvent): ConsoleEvent.ReplyWith("You cannot ban admins!") return Server.BanPlayer(pl, "Console", self.bannedreason) + elif "clearlist" in ConsoleEvent.Function: + DataStore.Flush("Ips") + DataStore.Flush("Ids") + DataStore.Save() + ConsoleEvent.ReplyWith("All Players Should be Unbanned!") def argsToText(self, args): text = str.join(" ", args)