summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authornielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-23 22:20:01 +0200
committernielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-23 22:20:01 +0200
commite0e9360f2580841f651aa4d7b6b9ab53a22b8014 (patch)
tree65f6352e15a51eedc3d5a3b1c1a82dc6f556e2f2 /MCServer
parentHeiGenBiomal: interpolate in 4x4 blocks on float values (diff)
downloadcuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar.gz
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar.bz2
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar.lz
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar.xz
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.tar.zst
cuberite-e0e9360f2580841f651aa4d7b6b9ab53a22b8014.zip
Diffstat (limited to 'MCServer')
-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