Difference between revisions of "Plugin API"

From Mineserver Wiki
Jump to navigation Jump to search
====Chat====
====Chat====
 +
{| class="wikitable"
{| class="wikitable"
−
|-
+
|- class="row0"
−
! Function
+
! class="col0" | Function
−
! Parameters
+
! class="col1" | Parameter name
−
! Return value
+
! class="col2" | Parameter type
−
|-
+
! class="col3" | Parameter info
−
| '''sendmsgTo'''
+
|- class="row1"
−
| (std::string user,std::string msg)
+
| class="col0" rowspan="4" | '''sendmsgTo'''
−
| bool, telling it the user was found
+
| class="col1" | user
−
|-
+
| class="col2" | const char*
−
| colspan="3" | This function is used to send msg to single user
+
| class="col3" | Username in char array
−
|-
+
|- class="row2"
−
| '''sendmsg'''
+
| class="col1" | userLen
−
| (std::string message)
+
| class="col2" | size_t
−
| bool, telling it the user was found
+
| class="col3" | Length of username
−
|-
+
|- class="row4"
−
| colspan="3" | This function is used to send msg to single user
+
| class="col1" | msg
 +
| class="col2" | const char*
 +
| class="col3" | Message in char array
 +
|- class="row5"
 +
| class="col1" | msgLen
 +
| class="col2" | size_t
 +
| class="col3" | length of the message
 +
|- class="row6"
 +
! class="col0" | Return value
 +
| class="col1 rightalign" colspan="3" | bool, telling it the user was found
|}
|}
 +
{| class="wikitable"
 +
|- class="row0"
 +
! class="col0" | Function
 +
! class="col1" | Parameter name
 +
! class="col2" | Parameter type
 +
! class="col3" | Parameter info
 +
|- class="row1"
 +
| class="col0" rowspan="4" | '''sendmsg'''
 +
| class="col1" | msg
 +
| class="col2" | const char*
 +
| class="col3" | Message in char array
 +
|- class="row2"
 +
| class="col1" | msgLen
 +
| class="col2" | size_t
 +
| class="col3" | length of the message
 +
|- class="row3"
 +
! class="col0" | Return value
 +
| class="col1 rightalign" colspan="3" | bool, telling it the user was found
 +
|}
 +
====Screen====
====Screen====