From e0e9360f2580841f651aa4d7b6b9ab53a22b8014 Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Tue, 23 Apr 2013 20:20:01 +0000 Subject: 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 --- MCServer/Plugins/Core/time.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MCServer/Plugins') diff --git a/MCServer/Plugins/Core/time.lua b/MCServer/Plugins/Core/time.lua index 79b0e387a..637773b45 100644 --- a/MCServer/Plugins/Core/time.lua +++ b/MCServer/Plugins/Core/time.lua @@ -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 \ No newline at end of file -- cgit v1.2.3