Fixed bug where you could not use /time day/night

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1407 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
nielsbreu@gmail.com 2013-04-23 20:20:01 +00:00
parent 0e7b64eed2
commit e0e9360f25
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
function HandleTimeCommand( Split, Player ) function HandleTimeCommand( Split, Player )
if( #Split ~= 3 ) then if Split[2] == nil then
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" ) Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" )
return true; return true
end end
local Server = cRoot:Get():GetServer() local Server = cRoot:Get():GetServer()
if( string.upper( Split[2] ) == "DAY") then if( string.upper( Split[2] ) == "DAY") then
@ -19,6 +19,5 @@ function HandleTimeCommand( Split, Player )
else else
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" ) Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" )
end end
return true return true
end end