Permalink
Browse files

Added info about case-sensitivity of FindAndDoWithPlayer

  • Loading branch information...
bearbin committed May 6, 2015
1 parent bd73dce commit 68614e7224a4c7c9db86f981b76765fa9fc6871c
Showing with 3 additions and 4 deletions.
  1. +3 −4 MCServer/Plugins/APIDump/APIDesc.lua
@@ -8,8 +8,7 @@
g_APIDesc =
{
Classes =
{
--[[
F --[[

This comment has been minimized.

Show comment
Hide comment
@NiLSPACE

NiLSPACE May 6, 2015

Member

I don't think you wanted to add the F as well?

@NiLSPACE

NiLSPACE May 6, 2015

Member

I don't think you wanted to add the F as well?

This comment has been minimized.

Show comment
Hide comment
@bearbin

bearbin May 6, 2015

Member

Nope, fixing.

@bearbin

bearbin May 6, 2015

Member

Nope, fixing.

This comment has been minimized.

Show comment
Hide comment
@bearbin

bearbin May 6, 2015

Member

Fixed in #1953

@bearbin

bearbin May 6, 2015

Member

Fixed in #1953

-- What the APIDump plugin understands / how to document stuff:
ExampleClassName =
{
@@ -2046,8 +2045,8 @@ a_Player:OpenWindow(Window);
BroadcastChatLeave = { Params = "MessageText", Return = "", Notes = "Broadcasts the specified message to all players, with its message type set to mtLeave. Use for players leaving the server." },
BroadcastChatSuccess = { Params = "MessageText", Return = "", Notes = "Broadcasts the specified message to all players, with its message type set to mtSuccess. Use for success messages." },
BroadcastChatWarning = { Params = "MessageText", Return = "", Notes = "Broadcasts the specified message to all players, with its message type set to mtWarning. Use for concerning events, such as plugin reload etc." },
CreateAndInitializeWorld = { Params = "WorldName", Return = "{{cWorld|cWorld}}", Notes = "Creates a new world and initializes it. If there is a world whith the same name it returns nil.<br/><br/><b>NOTE</b>This function is currently unsafe, do not use!" },
FindAndDoWithPlayer = { Params = "PlayerName, CallbackFunction", Return = "", Notes = "Calls the given callback function for all players with names partially (or fully) matching the name string provided." },
CreateAndInitializeWorld = { Params = "WorldName", Return = "{{cWorld|cWorld}}", Notes = "Creates a new world and initializes it. If there is a world whith the same name it returns nil.<br><br><b>NOTE</b>This function is currently unsafe, do not use!" },
FindAndDoWithPlayer = { Params = "PlayerName, CallbackFunction", Return = "", Notes = "Calls the given callback function for all players with names partially (or fully) matching the name string provided.<br>This function is not case-sensitive." },

This comment has been minimized.

Show comment
Hide comment
@NiLSPACE

NiLSPACE May 6, 2015

Member

There is also a cWorld version of FindAndDoWithPlayer.

@NiLSPACE

NiLSPACE May 6, 2015

Member

There is also a cWorld version of FindAndDoWithPlayer.

This comment has been minimized.

Show comment
Hide comment
@bearbin

bearbin May 6, 2015

Member

Thanks.

@bearbin

bearbin May 6, 2015

Member

Thanks.

DoWithPlayerByUUID = { Params = "PlayerUUID, CallbackFunction", Return = "bool", Notes = "If there is the player with the uuid, calls the CallbackFunction with the {{cPlayer}} parameter representing the player. The CallbackFunction has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cPlayer|Player}})</pre> The function returns false if the player was not found, or whatever bool value the callback returned if the player was found." },
ForEachPlayer = { Params = "CallbackFunction", Return = "", Notes = "Calls the given callback function for each player. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cPlayer|cPlayer}})</pre>" },
ForEachWorld = { Params = "CallbackFunction", Return = "", Notes = "Calls the given callback function for each world. The callback function has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cWorld|cWorld}})</pre>" },

0 comments on commit 68614e7

Please sign in to comment.