1
0
Fork 0

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:
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 )
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