MCrafterss / MTeamPvP

A Simple in-development TeamPvP Minigame built for PocketMine-MP
GNU General Public License v3.0
19 stars 10 forks source link

Could not pass event #17

Closed BobbyTowers closed 8 years ago

BobbyTowers commented 8 years ago

[17:29:16] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Class MCrafters\TeamPvP\GameManager not found on MCrafters\TeamPvP\TeamPvP [17:29:16] [Server thread/CRITICAL]: ClassNotFoundException: "Class MCrafters\TeamPvP\GameManager not found" (EXCEPTION) in "/src/spl/BaseClassLoader" at line 144

MiroTheSuperDev commented 8 years ago

try it now and tell me if you get an error

BobbyTowers commented 8 years ago

[22:48:33] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Argument 1 passed to MCrafters\TeamPvP\Tasks\GameWaitingTask::__construct() must be an instance of MCrafters\TeamPvP\TeamPvP, instance of MCrafters\TeamPvP\GameManager given, called in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/GameManager.php on line 23 on MCrafters\TeamPvP\TeamPvP [22:48:33] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to MCrafters\TeamPvP\Tasks\GameWaitingTask::__construct() must be an instance of MCrafters\TeamPvP\TeamPvP, instance of MCrafters\TeamPvP\GameManager given, called in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/GameManager.php on line 23" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/Tasks/GameWaitingTask" at line 17

ghost commented 8 years ago

Try it

BobbyTowers commented 8 years ago

[10:39:12] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Argument 1 passed to MCrafters\TeamPvP\Tasks\GameWaitingTask::__construct() must implement interface pocketmine\plugin\Plugin, instance of MCrafters\TeamPvP\GameManager given, called in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/GameManager.php on line 23 on MCrafters\TeamPvP\TeamPvP [10:39:12] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to MCrafters\TeamPvP\Tasks\GameWaitingTask::__construct() must implement interface pocketmine\plugin\Plugin, instance of MCrafters\TeamPvP\GameManager given, called in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/GameManager.php on line 23" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/Tasks/GameWaitingTask" at line 18

NawafCraft commented 8 years ago

Fixed i think

MiroTheSuperDev commented 8 years ago

i will test it now

guys i might add a new feature for easier and user friendly usage

NawafCraft commented 8 years ago

If you got any error tell me

BobbyTowers commented 8 years ago

[17:03:42] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function getName() on null on MCrafters\TeamPvP\TeamPvP [17:03:42] [Server thread/CRITICAL]: Error: "Call to a member function getName() on null" (EXCEPTION) in "/src/pocketmine/plugin/PluginBase" at line 278

MiroTheSuperDev commented 8 years ago

@mcrafters\developers please fix this i have many things to do and i am very busy

Survingo commented 8 years ago

@BobbyTowers Try now I should fixed it and if not... xD

BobbyTowers commented 8 years ago

Warning: strtolower() expects parameter 1 to be string, array given in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP.php on line 100

Warning: strtolower() expects parameter 1 to be string, array given in phar://C:/Users/Bobby-Foo/Documents/MCPE SQL/plugins/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP.php on line 120 [15:57:33] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function getName() on null on MCrafters\TeamPvP\TeamPvP [15:57:33] [Server thread/CRITICAL]: Error: "Call to a member function getName() on null" (EXCEPTION) in "/src/pocketmine/plugin/PluginBase" at line 278

Survingo commented 8 years ago

xD

Okay should try now

BobbyTowers commented 8 years ago

[16:40:46] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function setNameTag() on null on MCrafters\TeamPvP\TeamPvP [16:40:46] [Server thread/CRITICAL]: Error: "Call to a member function setNameTag() on null" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP" at line 133 [16:40:46] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function setNameTag() on null on MCrafters\TeamPvP\TeamPvP [16:40:46] [Server thread/CRITICAL]: Error: "Call to a member function setNameTag() on null" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP" at line 112 [16:40:46] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function getName() on null on MCrafters\TeamPvP\TeamPvP [16:40:46] [Server thread/CRITICAL]: Error: "Call to a member function getName() on null" (EXCEPTION) in "/src/pocketmine/plugin/PluginBase" at line 278

Survingo commented 8 years ago

@BobbyTowers Ops forgot that xD Try now

BobbyTowers commented 8 years ago

Nope - http://pastebin.com/1en4kvGX

MiroTheSuperDev commented 8 years ago

i found the mistake i think because the variable $p = $event->getPlayer();

then when we do that $p->getName();

it get replaced with that

$event->getPlayer()->getName();

while the correct code should be

$event->getPlayer->getName();

Ad5001 commented 8 years ago

@AmiroEmad No because the getPlayer() is a function not a variable !

MiroTheSuperDev commented 8 years ago

@adv001 i didnt say that getPlayer() is a variable i said the variable $p

MiroTheSuperDev commented 8 years ago

@BobbyTowers can you please test again

BobbyTowers commented 8 years ago

[05:16:01] [Server thread/INFO]: 读取中... MTeamPvP v1.0.0 Beta [05:16:01] [Server thread/CRITICAL]: ParseError: "syntax error, unexpected 'public' (T_PUBLIC)" (EXCEPTION) in "/MTeamPvP-master/src/MCrafters/TeamPvP/TeamPvP" at line 138 [05:16:01] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [05:16:01] [Server thread/EMERGENCY]: Please upload the "C:\Users\Bobby-Foo\Downloads\PocketMine-MP\crashdumps/CrashDump_Wed_May_18-05.16.01-ACT_2016.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

MiroTheSuperDev commented 8 years ago

@BobbyTowers done fixed the syntax error now of course we need again someone to test lol

BobbyTowers commented 8 years ago

[13:48:34] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function setNameTag() on null on MCrafters\TeamPvP\TeamPvP [13:48:34] [Server thread/CRITICAL]: Error: "Call to a member function setNameTag() on null" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP" at line 112 [13:48:35] [Server thread/CRITICAL]: "Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'MTeamPvP v1.0.0 Beta': Call to a member function setNameTag() on null on MCrafters\TeamPvP\TeamPvP [13:48:35] [Server thread/CRITICAL]: Error: "Call to a member function setNameTag() on null" (EXCEPTION) in "/MTeamPvP_v1.0.0 Beta.phar/src/MCrafters/TeamPvP/TeamPvP" at line 130

MiroTheSuperDev commented 8 years ago

i a have an idea to fix that if it works i will commit it if not i will wait for another one to fix it