summaryrefslogtreecommitdiffstats
path: root/Plugins/Core.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Plugins/Core.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/Core.lua b/Plugins/Core.lua
index 4438401a9..5b98fcbaa 100644
--- a/Plugins/Core.lua
+++ b/Plugins/Core.lua
@@ -232,10 +232,10 @@ function HandleTimeCommand( Split, Player )
local Server = cRoot:Get():GetServer()
if( string.upper( Split[2] ) == "DAY") then
- cRoot:Get():GetWorld():SetWorldTime( 0 )
+ Player:GetWorld():SetWorldTime( 0 )
Server:SendMessage( cChatColor.Green .. Player:GetName() .. " set the time to Day.")
elseif( string.upper( Split[2] ) == "NIGHT") then
- cRoot:Get():GetWorld():SetWorldTime( 12000 + 1000 )
+ Player:GetWorld():SetWorldTime( 12000 + 1000 )
Server:SendMessage( cChatColor.Green .. Player:GetName() .. " set the time to Night.")
else
Player:SendMessage( cChatColor.Green .. "Usage: /time [Day/Night]" )