summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-24 20:02:51 +0100
committerMattes D <github@xoft.cz>2014-12-24 20:02:51 +0100
commit5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96 (patch)
tree6ad394364397045fca24d4ce1b7469ba0f5be9c7 /MCServer/Plugins/APIDump/APIDesc.lua
parentFixed redstone dust placement on upside-down slabs. (diff)
downloadcuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar.gz
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar.bz2
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar.lz
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar.xz
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.tar.zst
cuberite-5609d76ed7d8026b3bcaeb02fb42bd9ba2f27c96.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index ba3763724..b2c7108e9 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1840,7 +1840,9 @@ a_Player:OpenWindow(Window);
MoveToWorld = { Params = "WorldName", Return = "bool", Return = "Moves the player to the specified world. Returns true if successful." },
OpenWindow = { Params = "{{cWindow|Window}}", Return = "", Notes = "Opens the specified UI window for the player." },
PermissionMatches = { Params = "Permission, Template", Return = "bool", Notes = "(STATIC) Returns true if the specified permission matches the specified template. The template may contain wildcards." },
+ PlaceBlock = { Params = "BlockX, BlockY, BlockZ, BlockType, BlockMeta", Return = "bool", Notes = "Places a block while impersonating the player. The {{OnPlayerPlacingBlock|HOOK_PLAYER_PLACING_BLOCK}} hook is called before the placement, and if it succeeds, the block is placed and the {{OnPlayerPlacedBlock|HOOK_PLAYER_PLACED_BLOCK}} hook is called. Returns true iff the block is successfully placed. Assumes that the block is in a currently loaded chunk." },
Respawn = { Params = "", Return = "", Notes = "Restores the health, extinguishes fire, makes visible and sends the Respawn packet." },
+ SendBlocksAround = { Params = "BlockX, BlockY, BlockZ, [Range]", Return = "", Notes = "Sends all the world's blocks in Range from the specified coords to the player, as a BlockChange packet. Range defaults to 1 (only one block sent)." },
SendMessage = { Params = "Message", Return = "", Notes = "Sends the specified message to the player." },
SendMessageFailure = { Params = "Message", Return = "", Notes = "Prepends Rose [INFO] / colours entire text (depending on ShouldUseChatPrefixes()) and sends message to player. For a command that failed to run because of insufficient permissions, etc." },
SendMessageFatal = { Params = "Message", Return = "", Notes = "Prepends Red [FATAL] / colours entire text (depending on ShouldUseChatPrefixes()) and sends message to player. For something serious, such as a plugin crash, etc." },