51091fe87b
Fix player data saving
2017-06-07 12:54:12 +01:00
7c14ffbcfa
More type fixes
2017-06-07 12:54:12 +01:00
c2186041d6
Fix TranslationContainer issue
2017-06-07 12:53:16 +01:00
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
e83ffd5afe
Fixed players don't see teleport movement, close #921
2017-06-05 16:47:12 +01:00
54453d0b0a
Refactored entity IDs in packets for consistency and to clarify on types
2017-06-05 15:41:27 +01:00
efea39e0a4
Change buffer unread assertion to debug
...
I lost count of how many times I changed this now... what happened to the other times?
2017-06-04 19:19:50 +01:00
d4bb078566
Fixed some formatting issues in Player
2017-06-04 18:32:45 +01:00
2f4943ac90
Fixed some doc issues
2017-06-04 14:27:30 +01:00
087a994393
Workaround for some plugins crashing clients during PlayerLoginEvent
2017-06-02 17:06:01 +01:00
63358a8065
Merge branch 'master' into mcpe-1.1
2017-05-30 09:45:20 +01:00
0ad16c1919
Added PlayerDataSaveEvent, resolved #487 ( #920 )
...
* Added PlayerDataSaveEvent, resolved #487
* Added getPlayer() to PlayerDataSaveEvent
may return an IPlayer
* Fixed quit messages
This TranslationContainer vs. string mess... >_<
2017-05-29 18:50:45 +01:00
954271b90f
Found unknown fields for SetSpawnPositionPacket
2017-05-27 13:13:19 +01:00
af06d78725
Merge changes from master
2017-05-24 09:54:11 +01:00
23ed3334c2
added creative mode check for block picking
2017-05-23 16:26:29 +01:00
aecff7c782
Revert "Improved handling of incompatible protocols"
...
This reverts commit 576702ffa9
.
This crippled plugins which use data fromm LoginPacket :S
2017-05-21 13:27:27 +01:00
60f5c7ccef
Async chunk compression and serialization is now non-optional
2017-05-18 12:19:27 +01:00
a9afad10bc
BinaryStream no longer extends stdClass, fixed a couple of minor bugs
...
Seems :shoghi: used stdClass to silence IDEs, which before ALPHA5 would complain about myriad undefined fields due to lack of type checking (switch based on packet id 🤦 )
2017-05-15 19:28:39 +01:00
0a4d62b405
Added encode and decode methods for more packets
2017-05-15 15:56:59 +01:00
b9ad0b99a5
Merge master into mcpe-1.1
2017-05-14 16:42:42 +01:00
576702ffa9
Improved handling of incompatible protocols
...
Allow plugins to hack around incompatible protocol numbers 🙈
2017-05-14 16:15:15 +01:00
4a9acf564c
Silence PlayerFallPacket unhandled spam
...
we're not using this packet
2017-05-13 19:26:57 +01:00
69f64dd802
BossEventPacket
...
lots of stuff doesn't work (not implemented in MCPE, bug, or are we doing something wrong???)
2017-05-13 17:33:56 +01:00
046f17c9e2
Merge branch 'master' into mcpe-1.1
2017-05-08 17:43:09 +01:00
76ceddf266
Reduced deltas for player movement, significantly smoother player movement and rotation ( #883 )
...
Send movement to viewers if the player moved more than 0.01 blocks in a tick or rotated more than 1 degree in any direction.
2017-05-05 11:23:06 +01:00
11f35d28c2
Call PlayerInteractEventm when receiving ItemFrameDropItemPacket to allow plugins to prevent item frame item removal ( #887 )
2017-05-05 11:18:58 +01:00
702c129a97
Added basic support back for block-crack animations when breaking blocks
...
TODO: improve this to take stuff like swimming, ladders, enchanted tools into account, fix wrong tool break time calculations for bad tools (pmmp/PocketMine-MP#211 )
2017-05-05 09:40:55 +01:00
56306f6636
Merge branch 'master' into mcpe-1.1
2017-05-04 21:15:49 +01:00
18f1376c65
Added handling for punch-block player action, added block punch particles
2017-05-04 21:11:47 +01:00
13fd8b681e
Added some sounds, fixed DestroyBlockParticle wrong particles for blocks with different meta values
2017-05-04 16:50:13 +01:00
eaef2bd169
Fixed some inspections
2017-05-04 12:19:50 +01:00
653b6b55a9
Added title command and API for resetting title duration
2017-04-27 16:38:51 +01:00
7aeb3129ac
Merge conflict resolution
2017-04-27 14:27:29 +01:00
84ec944b6b
Use short class names for unhandled packet logging, added some documentation
2017-04-27 12:16:24 +01:00
caf4937222
Fixed arrow flight and spawning bugs, fixed critical trail, close #420
2017-04-26 18:55:48 +01:00
7a2ed232cc
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-24 13:56:19 +01:00
d682fdfdf0
Food and exhaustion should not apply in creative, close #860
2017-04-24 13:31:05 +01:00
0e7f364a41
Fixed chunk object memory leak when chunks are changed, close #419
...
If a player quit the server in the 1-second between a chunk changing and a fresh chunk-order requesting a resend of that chunk, the player wouldn't know they were using that chunk and did not unregister themselves, causing the subject chunks to always remain loaded.
2017-04-24 11:55:33 +01:00
179210aa27
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-21 22:50:14 +01:00
6ece57e23e
Merge changes from master
2017-04-21 22:48:18 +01:00
2204942338
Fixed the half-done hunger implementation, fixed lots of bugs related to hunger
...
- Fixed starvation doesn't deal any damage at all (Human->getFood() returns a float, not an int, === 0 won't work so great)
- Added exhaustion for sprinting, walking, jumping and sprint-jumping as per MCPE (these use MCPE values, and yes MCPE does walking exhaustion!)
- Fixed attributes don't get reset after player death
- Added food and hunger regeneration in peaceful difficulty
- Added API methods Living->jump() (motion isn't updated yet, so this won't actually do much if plugins try to use it) and Living->getJumpVelocity()
TODO: implement exhaustion for swimming
2017-04-21 19:48:25 +01:00
00a226921c
Fixed server crash when taking damage after being killed when having Health Boost effect
2017-04-21 18:52:04 +01:00
3f1790bcb8
Found some missing data flags and proper fix for ladders
2017-04-20 19:42:00 +01:00
86de0bddd9
World should only be completely immutable if we're in spectator mode
...
Fixes being unable to break any blocks at all in adventure mode
2017-04-18 20:01:51 +01:00
b55929b382
Merge branch 'api3/network' into api3/network-mcpe-1.1
2017-04-15 10:30:02 +01:00
4ab8233fe0
Fixed shooting bow while sprinting, close #827
2017-04-14 15:27:32 +01:00
a327a74ece
Protocol changes for 1.1.0.3, fixed red sky, fixed crashes
2017-04-14 15:17:56 +01:00
f3ab45e7d5
Merged in 1.0.6 changes, added autogenerated data for 1.1.0.3 (doesn't work yet) and deliberately made the same merge error as Mojang
2017-04-14 13:00:43 +01:00
319763dd93
Fix #823
...
Thanks to @SuperMaXAleX
2017-04-13 22:32:53 +03:00
1c7773c5f1
Visibility keyword before final or abstract keyword. ( #814 )
2017-04-13 20:58:53 +08:00