75 Commits

Author SHA1 Message Date
Dylan K. Taylor
477cb77002 Exploded Player->handleDataPacket() into 70+ methods 2017-03-08 20:28:20 +00:00
Dylan K. Taylor
2a4fb93a92 Updated RakLib, use reliability constants instead of literal values 2017-02-07 11:34:25 +00:00
Dylan K. Taylor
28baae8154 Fix RakLib crashing without logging any useful crash information 2017-02-01 17:59:13 +00:00
Dylan K. Taylor
4f4bdea104 Fix trailing slashes in MOTD breaks server list, close #153 (#154)
Fixes #4083
2016-12-28 23:07:56 +00:00
Dylan K. Taylor
a8694dcbf7 Relocated MINECRAFT_VERSION and MINECRAFT_VERSION_NETWORK to ProtocolInfo and deprecated the originals 2016-12-19 13:16:29 +00:00
Dylan K. Taylor
86ed0f1397 Updated existing packets and added new ones 2016-10-27 10:55:01 +01:00
SOFe
58ff381557 PhpStorm automated formatting (#11)
* PhpStorm reformatting

* Tuned PhpStorm reformatting

* Improved ItemIds and BlockIds formatting

* Tuned more PhpStorm reformatting

* Improved string concatenation
2016-10-03 19:05:48 +08:00
SOF3
6fc435da0e
Imports rearrangement 2016-10-03 00:43:46 +08:00
Intyre
ef8227a074
Bump version to 0.15.0.0 and protocol changes 2016-06-15 23:59:35 +02:00
Intyre
bc3dca4736
Support for 0.14.0.1 2016-01-26 22:01:35 +01:00
Shoghi Cervantes
eaef40618b Send default reliable and ordered packets on RakNet 2015-09-27 19:48:31 +02:00
Shoghi Cervantes
0bcf639a98 Changed how exceptions work and are logged, throw proper exceptions on tasks 2015-09-18 12:03:24 +02:00
Shoghi Cervantes
3ffdb8e552 Removed @deprecated classes, methods and properties, added some type hints 2015-09-12 17:10:11 +02:00
Shoghi Cervantes
e137ac4c56 Base PHP7 work to make it "run" - READ NEXT LINES!
All plugins will need to bump the API if they want to use this.
NOTE THAT THIS IS NOT THE FINAL API 2.0.0 AND THAT THERE WILL BE MORE CHANGES.
To start updating, you might also want to read https://secure.php.net/manual/en/migration70.php and specifically https://secure.php.net/manual/en/migration70.incompatible.php

To compile PHP7 with some of the required dependencies, use https://gist.github.com/shoghicp/166ab26ce5cc7a390f45
ONLY LINUX IS TESTED, DO NOT ASK FOR OTHER PLATFORMS!

----- THIS VERSION IS NOT SUPPORTED -----

This version WILL crash randomly in unexpected places due to PHP7, pthreads, PocketMine or cosmic rays.

Handle with care, and store under direct sunlight for the best performance.
2015-09-10 21:29:29 +02:00
Shoghi Cervantes
4fd5e9ba7d Improved RakNet encapsulated packet encoding 2015-06-08 12:45:52 +02:00
Shoghi Cervantes
9e14435dbb
Moved network ids to constants, improved some entity methods, more performance 2015-05-30 23:59:24 +02:00
Shoghi Cervantes
51062940c5
Implemented QueryRegenerateEvent as base for other interfaces 2015-05-26 01:17:34 +02:00
Shoghi Cervantes
7a34417e67 Kill player below -16 as now the bottom of the world can be rendered, send player count 2015-05-15 16:51:20 +02:00
Shoghi Cervantes
1a1b8830a4
Added MemoryManager object watcher for object leak debugging, improved SPL Thread/Worker stopping, fixed some possible weak references crashing unexpectedly 2015-05-09 16:11:12 +02:00
Shoghi Cervantes
f718d06a7d
Updated RakLib, tick inside thread instead of depending on main thread 2015-05-03 23:40:36 +02:00
Shoghi Cervantes
1b13a4c1ec Protocol 25 2015-04-28 16:56:59 +02:00
Shoghi Cervantes
2ea8835b12 Removed possible crash on RakLibInterface 2015-04-22 15:45:04 +02:00
Shoghi Cervantes
094234dc0f
Updated references and submodules 2015-04-19 15:37:18 +02:00
Shoghi Cervantes
e3c48b22cb
Anvil fixes, improved memory settings 2015-04-19 11:45:43 +02:00
Shoghi Cervantes
5860bdcc4d
Improved network 2015-04-18 22:38:57 +02:00
Shoghi Cervantes
61828baa8f
Improved manager 2015-04-18 22:33:50 +02:00
Shoghi Cervantes
b2c25eaf36
Added MemoryManager, new memory properties, improved performance, updated RakLib, fixed misc. bugs 2015-04-18 20:13:52 +02:00
Shoghi Cervantes
7f28deefcb
Better BatchPacket decoding and LoginPacket handling 2015-04-15 19:30:49 +02:00
Shoghi Cervantes
42eda170b5
Oops, forgot to do it correctly! 2015-04-14 20:39:37 +02:00
Shoghi Cervantes
0b176b3fe0 Implemented Channeled packet sending 2015-04-14 18:24:40 +02:00
Shoghi Cervantes
0c041ebca3
Added base translation system 2015-04-11 01:32:08 +02:00
Shoghi Cervantes
141c0a297e Skins, protocol changes, handle split packets 2015-04-08 13:00:15 +02:00
Shoghi Cervantes
08f2b7f291
Moved chunk population to async tasks, and no more cut trees! 2015-03-27 01:57:08 +01:00
Shoghi Cervantes
72c4c01542 Yay generation uses async tasks 2015-03-26 18:21:39 +01:00
Shoghi Cervantes
962c28aaca
BatchPacket, compress any packet depending on the size, really fast threaded chunk sending 2015-03-26 00:06:46 +01:00
Shoghi Cervantes
d1760d9bb8 Synchronize hotbar slots, removed RotateHeadPacket, improved MoveEntityPacket, FullChunkDataPacket 2015-03-24 16:26:46 +01:00
Shoghi Cervantes
62ba36b474
New TextPacket, second part! 2015-03-19 20:27:51 +01:00
Shoghi Cervantes
11c13cd666
Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states) 2015-03-14 15:22:13 +01:00
Shoghi Cervantes
5b3ce2da9d Fixed packets 2015-03-12 15:38:17 +01:00
Shoghi Cervantes
4b442a9d7c Renamed LoginStatusPacket to PlayStatusPacket, added spawn status, new colors 2015-03-12 11:43:50 +01:00
Shoghi Cervantes
d80b8524fb More packets changed, unique IDs D: 2015-03-12 11:43:50 +01:00
Shoghi Cervantes
5fcb0d6aa5 Added colors, Disconnect Packet, protocol 21 2015-03-12 11:43:50 +01:00
Shoghi Cervantes
24c6cca664
Updated RakLib, fixed help message not showing command, added documentation to Plugin->getResource() 2015-01-14 17:23:16 +01:00
Shoghi Cervantes
9fac990b19
Throw exception when RakLib crashes 2015-01-13 18:44:15 +01:00
Shoghi Cervantes
438591bd75
API 1.11.0, fixed phar check 2015-01-03 16:38:36 +01:00
Shoghi Cervantes
7ef8edccf4
Added PlayerCreationEvent 2015-01-03 16:38:00 +01:00
Shoghi Cervantes
902ba81e02
Added automatic/manual RakLib IP address, block addresses when exceptions are thrown 2014-12-26 13:33:41 +01:00
Shoghi Cervantes
747f7685e7 Fix formatting issues due to bad IDE settings 2014-12-07 16:30:04 +01:00
Shoghi Cervantes
4a90ac270f Improved exception handling and debugging 2014-11-22 13:52:36 +01:00
Shoghi Cervantes
92143d523c Added SetDifficultyPacket 2014-11-06 19:07:24 +01:00