From 98d574f05ea46763fc9e762b0719ab3ef2271230 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 16 Aug 2013 09:20:05 +0200 Subject: No more Core in the MCServer repo --- MCServer/Plugins/Core/onlogin.lua | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 MCServer/Plugins/Core/onlogin.lua (limited to 'MCServer/Plugins/Core/onlogin.lua') diff --git a/MCServer/Plugins/Core/onlogin.lua b/MCServer/Plugins/Core/onlogin.lua deleted file mode 100644 index 6826305b2..000000000 --- a/MCServer/Plugins/Core/onlogin.lua +++ /dev/null @@ -1,17 +0,0 @@ -function OnLogin(Client, ProtocolVersion, Username) - if( Username ~= "" ) then - if( BannedPlayersIni:GetValueB("Banned", Username, false) == true ) then - LOGINFO( Username .. " tried to join, but is banned!") - return true -- Player is banned, return true to deny access - end - if( WhiteListIni:GetValueB("WhiteListSettings", "WhiteListOn", false ) == true ) then - if( WhiteListIni:GetValueB("WhiteList", Username, false ) == false ) then -- not on whitelist - local Server = cRoot:Get():GetServer() - Server:SendMessage( Username .. " tried to join, but is not on the whitelist." ) - LOGINFO( Username .. " tried to join, but is not on the whitelist." ) - return true -- Deny access to the server - end - end - end - return false -end \ No newline at end of file -- cgit v1.2.3