BigBrotherTeam / BigBrother

Allows the connection of Minecraft: Java Edtion clients to PocketMine-MP servers. Made for PocketMine-MP
GNU Lesser General Public License v3.0
96 stars 23 forks source link

God this is hacky #118

Closed thelucyclub closed 6 years ago

thelucyclub commented 6 years ago

DO NOT MERGE THIS

I only wish to contribute a bit, this will cause a lot of errors. This should fix #115 but it's very hacky. Levels will stop being ticked, so just try and use this is it helps at all. If it doesn't (which it probably won't) then just ignore this. I'm very new to PHP so I don't even know if I'm using the : and ? operators right.

Error:

[14:15:08] [Server thread/CRITICAL]: Could not tick level "Lobby": Use of undefined constant float - assumed 'float' (this will throw an Error in a future version of PHP)
[14:15:08] [Server thread/CRITICAL]: ErrorException: "Use of undefined constant float - assumed 'float' (this will throw an Error in a future version of PHP)" (EXCEPTION) in "plugins/BigBrother-master/src/shoghicp/BigBrother/utils/ConvertUtils" at line 780
[14:15:08] [Server thread/DEBUG]: #0 plugins/BigBrother-master/src/shoghicp/BigBrother/utils/ConvertUtils(780): pocketmine\error_handler(integer 2, string Use of undefined constant float - assumed 'float' (this will throw an Error in a future version of PHP), string C:\Users\sebas_000\Desktop\MC-Pilat\plugins\BigBrother-master\src\shoghicp\BigBrother\utils\ConvertUtils.php, integer 780, array Array())
[14:15:08] [Server thread/DEBUG]: #1 plugins/BigBrother-master/src/shoghicp/BigBrother/utils/Binary(62): shoghicp\BigBrother\utils\ConvertUtils::convertPEToPCMetadata(array Array())
[14:15:08] [Server thread/DEBUG]: #2 plugins/BigBrother-master/src/shoghicp/BigBrother/network/protocol/Play/Server/EntityMetadataPacket(48): shoghicp\BigBrother\utils\Binary::writeMetadata(array Array())
[14:15:08] [Server thread/DEBUG]: #3 plugins/BigBrother-master/src/shoghicp/BigBrother/network/Packet(241): shoghicp\BigBrother\network\protocol\Play\Server\EntityMetadataPacket->encode()
[14:15:08] [Server thread/DEBUG]: #4 plugins/BigBrother-master/src/shoghicp/BigBrother/network/ProtocolInterface(186): shoghicp\BigBrother\network\Packet->write()
[14:15:08] [Server thread/DEBUG]: #5 plugins/BigBrother-master/src/shoghicp/BigBrother/network/ProtocolInterface(245): shoghicp\BigBrother\network\ProtocolInterface->sendPacket(integer 1, shoghicp\BigBrother\network\protocol\Play\Server\EntityMetadataPacket object)
[14:15:08] [Server thread/DEBUG]: #6 src/pocketmine/Player(3085): shoghicp\BigBrother\network\ProtocolInterface->putPacket(shoghicp\BigBrother\DesktopPlayer object, shoghicp\BigBrother\network\protocol\Play\Server\EntityMetadataPacket object, boolean , boolean )
[14:15:08] [Server thread/DEBUG]: #7 src/pocketmine/Player(3105): pocketmine\Player->sendDataPacket(pocketmine\network\mcpe\protocol\SetEntityDataPacket object, boolean , boolean )
[14:15:08] [Server thread/DEBUG]: #8 src/pocketmine/entity/Entity(2096): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\SetEntityDataPacket object)
[14:15:08] [Server thread/DEBUG]: #9 src/pocketmine/entity/Entity(998): pocketmine\entity\Entity->sendData(array Array(), array Array())
[14:15:08] [Server thread/DEBUG]: #10 src/pocketmine/entity/Living(623): pocketmine\entity\Entity->entityBaseTick(integer 1)
[14:15:08] [Server thread/DEBUG]: #11 src/pocketmine/entity/Human(621): pocketmine\entity\Living->entityBaseTick(integer 1)
[14:15:08] [Server thread/DEBUG]: #12 src/pocketmine/Player(1706): pocketmine\entity\Human->entityBaseTick(integer 1)
[14:15:08] [Server thread/DEBUG]: #13 src/pocketmine/level/Level(762): pocketmine\Player->onUpdate(integer 206)
[14:15:08] [Server thread/DEBUG]: #14 src/pocketmine/Server(2349): pocketmine\level\Level->doTick(integer 206)
[14:15:08] [Server thread/DEBUG]: #15 src/pocketmine/Server(2507): pocketmine\Server->checkTickUpdates(integer 206, double 1524597308.5894)
[14:15:08] [Server thread/DEBUG]: #16 src/pocketmine/Server(2243): pocketmine\Server->tick()
[14:15:08] [Server thread/DEBUG]: #17 src/pocketmine/Server(2119): pocketmine\Server->tickProcessor()
[14:15:08] [Server thread/DEBUG]: #18 src/pocketmine/Server(1701): pocketmine\Server->start()
[14:15:08] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\sebas_000\Desktop\MC-Pilat\, string C:\Users\sebas_000\Desktop\MC-Pilat\plugins\)

Like I said before, I'm really new to PHP so I have no idea what this means.

If this doesn't help at all, sorry for wasting your time.

Regards, ~thelucyclub

hmy2001 commented 6 years ago

Not implemented Bounding box in java edition.