diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-31 21:56:42 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-31 21:56:42 +0100 |
commit | 968f41ba511f8f74377b1a1c7b61ff759ebe3078 (patch) | |
tree | c52f95f94444254cd93e8e3460f7013eaab18b41 /Plugins/Core/web_playerlist.lua | |
parent | Slight code cleanup, no big changes (diff) | |
download | cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar.gz cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar.bz2 cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar.lz cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar.xz cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.tar.zst cuberite-968f41ba511f8f74377b1a1c7b61ff759ebe3078.zip |
Diffstat (limited to 'Plugins/Core/web_playerlist.lua')
-rw-r--r-- | Plugins/Core/web_playerlist.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/Core/web_playerlist.lua b/Plugins/Core/web_playerlist.lua index 205306ba8..6c736ce3c 100644 --- a/Plugins/Core/web_playerlist.lua +++ b/Plugins/Core/web_playerlist.lua @@ -2,8 +2,8 @@ function HandleRequest_PlayerList( Request ) local World = cRoot:Get():GetWorld()
local Content = ""
- if( Request.Params:get("playerlist-kick") ~= "" ) then
- local KickPlayerName = Request.Params:get("playerlist-kick")
+ if( Request.Params["playerlist-kick"] ~= nil ) then
+ local KickPlayerName = Request.Params["playerlist-kick"]
local Player = World:GetPlayer( KickPlayerName )
if( Player == nil ) then
Content = Content .. "<p>Could not find player " .. KickPlayerName .. " !</p>"
|