From 738b1b3467e5556667464bc33294a7485d37097b Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 22 Jan 2012 20:15:11 +0000 Subject: Improved Core's WebAmin interface a bit. Can now kick players through WebAdmin Can now enable/disable whitelist through WebAdmin Tick speed is limited in a better way now, instead of always sleeping 50ms before each tick, it now add only sleeps additional time when the tick time was faster than 50ms. Server should run slightly faster because of this (and use more cpu%) git-svn-id: http://mc-server.googlecode.com/svn/trunk@167 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Plugins/Core.lua | 69 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 58 insertions(+), 11 deletions(-) (limited to 'Plugins') diff --git a/Plugins/Core.lua b/Plugins/Core.lua index cd87182bf..65ab3b534 100644 --- a/Plugins/Core.lua +++ b/Plugins/Core.lua @@ -572,15 +572,33 @@ end function PlayerListWeb:HandleRequest( Request ) local World = cRoot:Get():GetWorld() local Content = "" - Content = Content .. "
Connected Players: " .. World:GetNumPlayers() .. "
" - Content = Content .. "