summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-08 03:02:13 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-08 03:02:13 +0100
commit9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1 (patch)
treeefb1ba794c3c647690be34dabadae3899be6d082 /Plugins
parentForgot to add squirrel project for windows (diff)
downloadcuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar.gz
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar.bz2
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar.lz
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar.xz
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.tar.zst
cuberite-9ad53cde45fe6c4445a66b8ca969ec8b6025b3b1.zip
Diffstat (limited to 'Plugins')
-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]" )