Closed jarne closed 7 years ago
No, CID ban has never been a PocketMine feature.
Okay, then it looks like it was never compatible with PocketMine, @Tarik02 wrote on https://github.com/iTXTech/Genisys/pull/2138: "@dktapps, I tested this with pmmp/PocketMine-MP and it works good."
Thanks, this will be fixed soon.
[18:47:36] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'VISmartBar v0.0.1': Call to undefined method synapse\Player::getItemInHand() on VISmartBar\Main
[18:47:36] [Server thread/CRITICAL]: Error: "Call to undefined method synapse\Player::getItemInHand()" (EXCEPTION) in "/plugins/VISmartBar/src/VISmartBar/Main" at line 87
It has a lot of player instance issues like this one
@AryToNeX, this is not SynapsePM issue.
@AryToNeX You're importing the wrong Player class. synapse\Player has no getItemInHand(), but pocketmine\Player has. This can also be fixed by replacing use synapse\Player
with use synapse\Player as SynapsePlayer
.
Nope guys, I didn't import synapse/Player
at all, this is happening with PlayerInteractEvent::getPlayer()
I think SynapsePM tells PocketMine to override in some way the pocketmine\Player
class with his class and this is the result.
As I remember, it worked with pmmp some time ago. Now I'm getting this error, because CID bans has been removed from pmmp (where they ever implemented?).