Well, the title says almost everything, is it possible to use any of the PHP functions and / or declarations with the PocketMine API?, or does not detect them as valid, for example using the declaration: PHP: require in the main class of the plugin.
Yes, all plugins have permission to go anything PHP allows. However, some functions do not work as expected. For example, sleep() will literally stop the whole server instead of just stopping for one player. As for require, pay attention to the existing class autoloader.
Well, thanks for clarifying it, but I respect the declaration require, because I have not been able to use it correctly?
Why do you need to use `require`? Always place classes in PSR-0 structure and they will be automatically `require`d by the autoloader.
I am doing a test for use the functions defined in other file, but obtaining that file since a server and not directly since the plugin.
An example, I have a storage server, in which I store a file that uses the PocketMine API to declare functions, for example that the function called: "sayHello()" sends a message saying hello to the player, so my idea is use the "require" statement to obtain that file and use that function.