02-25-2017, 06:18 PM
(This post was last modified: 02-25-2017, 06:21 PM by Seadragon91.)
The function that will be called for the hook, contains the param Player. With it you can get the world the player is in:
API:
Player
World
World:SetBlock()
E_BLOCK_CAKE
If you want I could write a example plugin, that would place a block if a player breaks a block.
Code:
Player:GetWorld():SetBlock(Player:GetPosX(), Player:GetPosY(), Player:GetPosZ(), E_BLOCK_CAKE, 0)
API:
Player
World
World:SetBlock()
E_BLOCK_CAKE
If you want I could write a example plugin, that would place a block if a player breaks a block.