Difference between revisions of "Plugin API"
Jump to navigation
Jump to search
| colspan="3" | Gets server spawn position | | colspan="3" | Gets server spawn position | ||
|} | |} | ||
| + | |||
| + | ==Available callbacks== | ||
| + | |||
| + | |||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! Name | ||
| + | ! Parameters | ||
| + | ! Return value | ||
| + | |- | ||
| + | | '''ChatPre<''' | ||
| + | | const std::string& nick, std::string msg | ||
| + | | bool | ||
| + | |- | ||
| + | | colspan="3" | called on chat message prosessing, returning false will terminate the callback. | ||
| + | |- | ||
| + | | '''BlockPlacePre''' | ||
| + | | const std::string& nick, int x,char y,int z,char block | ||
| + | | bool | ||
| + | |- | ||
| + | | colspan="3" | called on block placement, returning false will prevent block placement and terminate callback. | ||
| + | |- | ||
| + | | '''BlockBreakPre''' | ||
| + | | (int* x, int* y, int* z) | ||
| + | | bool | ||
| + | |- | ||
| + | | colspan="3" | called on block break, returning false will prevent block breaking and terminate callback. | ||
| + | |} | ||
