Closed BobbyTowers closed 8 years ago
try it now and tell me if you get an error
[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
Try it
[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
Fixed i think
i will test it now
guys i might add a new feature for easier and user friendly usage
If you got any error tell me
[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
@mcrafters\developers please fix this i have many things to do and i am very busy
@BobbyTowers Try now I should fixed it and if not... xD
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
xD
Okay should try now
[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
@BobbyTowers Ops forgot that xD Try now
Nope - http://pastebin.com/1en4kvGX
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();
@AmiroEmad No because the getPlayer() is a function not a variable !
@adv001 i didnt say that getPlayer() is a variable i said the variable $p
@BobbyTowers can you please test again
[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.
@BobbyTowers done fixed the syntax error now of course we need again someone to test lol
[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
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
[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