summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Core/time.lua5
1 files changed, 2 insertions, 3 deletions
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