From 0958e167e89d2b3289c01905ebb8897e6bc86c43 Mon Sep 17 00:00:00 2001
From: Julian Laubstein
Note that the client already expects that the block has been placed. For that reason, if a plugin - refuses the placement, MCServer sends the old block at the provided coords to the client.
+ refuses the placement, Cuberite sends the old block at the provided coords to the client.Use the {{cPlayer}}:GetWorld() function to get the world to which the block belongs.
@@ -31,9 +31,9 @@ return { Name = "BlockMeta", Type = "NIBBLETYPE", Notes = "The block meta of the block" }, }, Returns = [[ - If this function returns false or no value, MCServer calls other plugins with the same event and + If this function returns false or no value, Cuberite calls other plugins with the same event and finally places the block and removes the corresponding item from player's inventory. If this - function returns true, no other plugin is called for this event, MCServer sends the old block at + function returns true, no other plugin is called for this event, Cuberite sends the old block at the specified coords to the client and drops the packet. ]], }, -- HOOK_PLAYER_PLACING_BLOCK -- cgit v1.2.3