Hi, is there any way to detect when some data is sent to a server? Say I pressed a button on my website (external) how could i detect that within a plugin? also, what would be the most effective way for this to work ? eg: how the data is sent when the button is pressed. Thanks!
You could have a plugin which starts a small server alongside PocketMine to communicate with your website.
I know I've said before I don't want to make plugins anymore. But making a plugin for this sounds like a fun project to me. I could make it.
You can create a query system between your website and PocketMine (to access it you must make a PocketMine plugin obviously). Or if you want to do it in a simply way, you can save data to a MySQL database and get it from a PocketMine plugin
I recommend you to use MySQLi for MySQL queries. It's a PHP extension that simplify database queries. Working with MySQLi queries is not difficult. On PHP website are explained all MySQLi functions
Another option that doesn't require a new plugin is to use RCON. So you could start an RCON connection from the web server to PocketMine-MP. I think there is a WebRCON somewhere else in the forums.