PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.26k stars 660 forks source link

I have Proplem With My Event Plugin #4259

Closed khavmc closed 6 years ago

khavmc commented 8 years ago

Hello guys

I am making eventplugin

And i am making event join

When join he is making sound anvil

But he is not work

He is write in console:

[Server] [12:36:58] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerJoinEvent' to 'NobadWordsKHAV v1.0.2': Call to a member function getName() on unknown on NobadWordsKHAV\Main [Server] [12:36:58] [Server thread/CRITICAL]: Error: "Call to a member function getName() on unknown" (EXCEPTION) in "/NobadWordsKHAV/src/NobadWordsKHAV/Main" at line 81 [Server] [12:36:58] [Server thread/INFO]: » KHAV Joined .

And i have proplem in eventdeath

I want to make deathmessage

$player killer by $killer

But when i kill the message is not work

He is write for me in console:

Server] [12:37:59] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerDeathEvent' to 'NobadWordsKHAV v1.0.2': Call to a member function getKiller() on float on NobadWordsKHAV\Main [Server] [12:37:59] [Server thread/CRITICAL]: Error: "Call to a member function getKiller() on float" (EXCEPTION) in "/NobadWordsKHAV/src/NobadWordsKHAV/Main" at line 106 [Server] [12:37:59] [Server thread/INFO]: KHAV was shot by KHAV

FuxonPlayz commented 8 years ago

you shouldn't upload plugins helps here! you should upload it in the forums.