ok i tried like you said with creating a block where you stand and i have this:
function Initialize( Plugin )
PLUGIN = Plugin
Plugin:SetName( "PlaceHere" )
Plugin:SetVersion( 1 )
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_CHAT )
Plugin:AddCommand("/PlaceHere", " - Places a block where you stand", "PlaceHere.PlaceHere")
Plugin:BindCommand( "/PlaceHere", "PlaceHere.PlaceHere", HandlePlaceHereCommand )
Plugin:BindCommand( "/ph", "placehere.placehere", HandlePlaceHereCommand )
function HandlePlaceHereCommand( Split, Player)
local World = cRoot:Get():GetDefaultWorld()
local Name = Player:GetName()
IncrementUndoGroup( Name )
X = mFloor(Player:GetPosX())
Y = mFloor(Player:GetPosY())
Z = mFloor(Player:GetPosZ())
if Y ~= -1 then
CuboidBlockPlace(X, Y, Z, fillBlock, 1, Name)
Server:SendMessage( cChatColor.Green .. "Block placed at: ".. cChatColor.White .." X:" ..X.. " Y:" ..Y.. " Z:" ..Z.. "", Player )
end
end
return true
end
LOG( "Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion() )
return true
end
it says that there is an error close to the last "end"

