diff options
Diffstat (limited to '')
-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 425d69e6a..8515972a6 100644 --- a/MCServer/Plugins/Core/time.lua +++ b/MCServer/Plugins/Core/time.lua @@ -6,10 +6,10 @@ function HandleTimeCommand( Split, Player ) local Server = cRoot:Get():GetServer()
if( string.upper( Split[2] ) == "DAY") then
- Player:GetWorld():SetWorldTime( 0 )
+ Player:GetWorld():SetTimeOfDay( 0 )
Server:SendMessage( cChatColor.Green .. Player:GetName() .. " set the time to Day.")
elseif( string.upper( Split[2] ) == "NIGHT") then
- Player:GetWorld():SetWorldTime( 12000 + 1000 )
+ Player:GetWorld():SetTimeOfDay( 12000 + 1000 )
Server:SendMessage( cChatColor.Green .. Player:GetName() .. " set the time to Night.")
else
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night]" )
|