summaryrefslogtreecommitdiffstats
path: root/Plugins
diff options
context:
space:
mode:
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 e124a9261..4438401a9 100644
--- a/Plugins/Core.lua
+++ b/Plugins/Core.lua
@@ -115,7 +115,7 @@ function CorePlugin:Initialize()
end
function HandleTopCommand( Split, Player )
- local World = cRoot:Get():GetWorld()
+ local World = Player:GetWorld()
local PlayerPos = Player:GetPosition()
local Height = World:GetHeight( math.floor(PlayerPos.x), math.floor(PlayerPos.z) )
@@ -218,7 +218,7 @@ function ShowMOTDTo( Player )
end
function HandleSpawnCommand( Split, Player )
- World = cRoot:Get():GetWorld()
+ World = Player:GetWorld()
Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
LOGINFO( Player:GetName() .. " returned to spawn." )
return true