diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-08-07 19:36:38 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-08-07 19:36:38 +0200 |
commit | f29b2b8ea6f833cad818cf35fc0a22a046eb66a8 (patch) | |
tree | f03168654b629840880bc4d420fa6158d04d3a04 /MCServer/Plugins/Core/time.lua | |
parent | Added a global .user file to initialize debugging options. (diff) | |
download | cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar.gz cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar.bz2 cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar.lz cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar.xz cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.tar.zst cuberite-f29b2b8ea6f833cad818cf35fc0a22a046eb66a8.zip |
Diffstat (limited to 'MCServer/Plugins/Core/time.lua')
-rw-r--r-- | MCServer/Plugins/Core/time.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/Core/time.lua b/MCServer/Plugins/Core/time.lua index b5d3c991a..fd2816f23 100644 --- a/MCServer/Plugins/Core/time.lua +++ b/MCServer/Plugins/Core/time.lua @@ -9,7 +9,7 @@ function HandleTimeCommand( Split, Player ) Server:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Time was set to daytime" ) elseif( string.upper( Split[2] ) == "NIGHT") then Player:GetWorld():SetTimeOfDay( 12000 + 1000 ) - Server:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Time was set to nighttime" ) + Server:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Time was set to night time" ) elseif( string.upper(Split[2]) == "SET" ) and ( tonumber(Split[3]) ~= nil) then Player:GetWorld():SetTimeOfDay( tonumber(Split[3]) ) Server:SendMessage(cChatColor.Green .. "[INFO] " .. cChatColor.White .. "Time was set to " .. Split[3] ) @@ -20,4 +20,4 @@ function HandleTimeCommand( Split, Player ) Player:SendMessage(cChatColor.Yellow .. "[INFO] " .. cChatColor.White .. "Usage: /time [Day/Night/Set/Add]" ) end return true -end
\ No newline at end of file +end |