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
This commit is contained in:
parent
0e7b64eed2
commit
e0e9360f25
@ -1,7 +1,7 @@
|
||||
function HandleTimeCommand( Split, Player )
|
||||
if( #Split ~= 3 ) then
|
||||
if Split[2] == nil then
|
||||
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" )
|
||||
return true;
|
||||
return true
|
||||
end
|
||||
local Server = cRoot:Get():GetServer()
|
||||
if( string.upper( Split[2] ) == "DAY") then
|
||||
@ -19,6 +19,5 @@ function HandleTimeCommand( Split, Player )
|
||||
else
|
||||
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night/Set/Add]" )
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
Loading…
Reference in New Issue
Block a user