Not able to run command inside plugin
#9
cWorld:SetBlock doesn't automatically translate strings to the blocktype and meta. You could take WorldEdit's GetBlockTypeMeta function to do this: https://github.com/cuberite/WorldEdit/bl...ns.lua#L12

local type, meta = GetBlockTypeMeta(Split[5])
Player:GetWorld():SetBlock(outVector, type, meta)
Reply
Thanks given by:


Messages In This Thread
RE: Not able to run command inside plugin - by NiLSPACE - 02-18-2021, 11:46 PM



Users browsing this thread: 1 Guest(s)