LegendOfMCPE / EssentialsPE

Port of Bukkit Essentials for @PocketMine Servers (Moved to @poggit-orphanage)
GNU General Public License v3.0
99 stars 21 forks source link

Bug #118

Closed SonyBravia closed 9 years ago

SonyBravia commented 9 years ago

PocketMine-MP Crash Dump Sun Jun 28 11:19:06 MDT 2015

Error: Cannot use object of type pocketmine\Player as array File: /EssentialsPE.phar/src/EssentialsPE/Loader Line: 621 Type: E_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: EssentialsPE v1.1.0

Code: [612] if(!isnumeric($radius)){ [613] return false; [614] } [615] $radius = new AxisAlignedBB($player->getFloorX() - $radius, $player->getFloorY() - $radius, $player->getFloorZ() - $radius, $player->getFloorX() + $radius, $player->getFloorY() + $radius, $player->getFloorZ() + $radius); [616] $entities = $player->getLevel()->getNearbyEntities($radius, $player); [617] /\ @var Player[] $players / [618] $players = []; [619] foreach($entities as $e){ [620] if($e instanceof Player){ [621] $player[] = $e; [622] } [623] } [624] return $players; [625] } [626] [627] /_ [628] * Change the time of a player [629] [630] * @param Player $player [631] * @param $time

Backtrace:

0 (): pocketmine\Server->crashDump()

PocketMine-MP version: 1.5dev #1230 [Protocol 27; API 1.12.0] Git commit: 0000000000000000000000000000000000000000 uname -a: Linux mc24.vgmc.us 2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 PHP Version: 5.6.2 Zend version: 2.6.0 OS : Linux, linux

Loaded plugins: AlwaysSpawn 2.2.2 by Philip Shilling for API(s) 1.12.0 KeepInventory 1.2.0 by boybook for API(s) 1.0.0 PurePerms 1.1.3 by 64FF00 for API(s) 1.12.0 SimpleAuth 1.7.1 by PocketMine Team, shoghicp for API(s) 1.12.0 ClearLagg 1.1.0 by LegendOfMCPE for API(s) 1.0.0 TimeCommander 2 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0 EconomyAPI 2.0.7 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 EssentialsPE 1.1.0 by LegendsOfMCPE Team for API(s) 1.12.0 EconomyAirport 2.0.4 by onebone for API(s) 1.12.0 PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0 BanItem 2.1 by LDX for API(s) 1.0.0 EconomyJob 2.0.3 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 WorldEditArt 1.0.0_betadev#048 by PEMapModder for API(s) 1.0.0 EconomySell 2.0.5 by onebone for API(s) 1.12.0 EconomyLand 2.0.7 by onebone for API(s) 1.12.0 EconomyShop 2.0.5 by onebone for API(s) 1.12.0 EconomyTax 2.0.2 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 EconomyUsury 1.0.0 by onebone for API(s) 1.12.0 EconomyAuction 2.0.2 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1 EconomyProperty 2.0.4 by onebone for API(s) 1.12.0 PureChat 1.2.7 by 64FF00 for API(s) 1.11.0

ghost commented 9 years ago

Typo :P We need to change it into $players[] = $e;

iksaku commented 9 years ago

Already fixed in commits xD check out