628ff9449e
Fixed respawn fall damage when dying while falling from causes other than fall damage
...
tl;dr: fall distance didn't get reset
2017-10-05 16:47:50 -04:00
fc9c264e77
Resend blocks around targeted blocks when interactions & block-break are cancelled, fixes #906
...
this solution is dumber but more effective (also solves the beds & doors placement problem)
2017-10-03 19:28:01 +01:00
9bbebaa071
Force-close the inventory window when crafting fails to avoid desync issues
...
mojang, why does this have to be hard work
2017-10-03 11:04:21 +01:00
76117e7fa0
Get XUID from LoginPacket after authentication, add Player->getXuid()
2017-10-02 18:51:51 +01:00
b54f256fea
Added a hack to cut down on excess skin geometry bloat
...
there are further ways this can be debloated, but non-pretty-printing it cuts the size down by ~70-80%.
2017-10-01 16:50:16 +01:00
ab5bbaa7bd
Remove redundant property from Player
2017-10-01 12:19:11 +01:00
e6cecabf3f
New skin API, add support for custom capes & custom geometry ( #1416 )
...
* Added support for changing skins ingame, custom capes & geometry
* Use PlayerSkinPacket for setting Human skin instead of PlayerList hack
2017-09-29 14:09:00 +01:00
c273a46537
Ditch crafting transaction if we get normal inventory action with incomplete crafting transaction
2017-09-28 20:07:07 +01:00
9bc8d8db79
Revert "Add buffering for non-immediate priority packets to reduce compression overhead"
...
This reverts commit 2162675b64
.
This broke Human skins... it seems MCPE doesn't like you adding and
removing a player from the list in the same batch.
2017-09-28 14:29:17 +01:00
d0bf0ff083
Imports cleanup
2017-09-28 10:51:05 +01:00
2162675b64
Add buffering for non-immediate priority packets to reduce compression overhead
2017-09-27 14:06:42 +01:00
8f63117dac
Use try...finally in Player->sendDataPacket() so we don't forget to stop timings
2017-09-27 13:52:25 +01:00
992c4ce6a0
Added API method Block->getVariant()
2017-09-26 19:35:04 +01:00
13d50aff62
don't break bows, stupid
2017-09-26 12:20:40 +01:00
5b191327bc
Fixed players' arms staying stuck up after eating something
2017-09-26 12:14:10 +01:00
38fad4b963
Implement difficulty per-world ( #878 )
...
* Moved Server::getDifficultyFromString() to Level
* Added ability to set difficulty in worlds section of pocketmine.yml for generation
2017-09-26 11:16:51 +01:00
e64076ec81
Disconnect 1.1 clients properly (HACK!)
2017-09-26 10:01:32 +01:00
6e5759b1d1
Made incompatible client disconnect messages more informative
2017-09-25 14:30:11 +01:00
03d3e595d6
Implement JWT signature verification and Xbox Live checks, close #315
...
This can be enabled or disabled using the "online-mode" directive in
server.properties.
NOTE: For safety reasons it is enabled by default, since many naive server owners currently believe that authentication is not needed because "the client is forced to sign-in".
Newsflash for readers: the forced authentication is easily bypassed using a LAN proxy.
Un-authenticated LAN connections will still work fine if the online mode is disabled.
Added the following API methods:
- Server->getOnlineMode() : bool
- Server->requiresAuthentication() : bool
- Player->isAuthenticated() : bool
JWT verification is rather expensive, so it is done in an AsyncTask. Make sure you don't hog your worker threads.
2017-09-25 12:30:58 +01:00
3c02a6a8ed
Fixed eating sounds
2017-09-24 21:18:08 +01:00
240cc3043a
Rewritten crafting, fixed #45
2017-09-24 14:14:24 +01:00
178dd1b981
Fixed block picking, added PlayerBlockPickEvent
2017-09-23 14:42:28 +01:00
826ec90856
Revert "Workaround for some plugins crashing clients during PlayerLoginEvent"
...
This reverts commit 087a994393
.
2017-09-23 13:23:19 +01:00
0523f26613
Send forced movement when getting bad movements after teleport, fixes AlwaysSpawn-type plugins
...
it's mostly harmless to send it here anyway
2017-09-23 12:49:46 +01:00
d0a96f35da
./ hack is back (/help is client-side >_<)
2017-09-21 17:51:39 +01:00
dbed80386a
Removed redundant interface
2017-09-21 12:22:47 +01:00
61cfdac6a1
Fixed a mistake in entity attack handler
2017-09-21 10:18:52 +01:00
fd7fb10223
Return null on unmatched inventory action and log details
2017-09-20 18:38:14 +01:00
55720d9f0a
Added InventoryAction->onPreExecute(), fixed PlayerDropItemEvent deleting items
2017-09-20 12:19:42 +01:00
f0755d1659
Fixed handling of recipes that require a crafting table
2017-09-20 09:43:49 +01:00
8cae20e818
Removed hotbar slot linking (works like PC now)
2017-09-19 18:36:57 +01:00
361b262d3a
Merge branch 'master' into mcpe-1.2
2017-09-18 10:29:38 +01:00
a99eee9def
Removed redundant assignment
2017-09-17 20:01:11 +01:00
0f37bc35ba
Always evacuate the crafting grid on close, no matter whether it's big or not
...
otherwise items will get deleted and people will cry
2017-09-16 21:58:10 +01:00
8dc3d019f6
Return handled on fake window close
2017-09-16 21:55:25 +01:00
bd64172750
Added API method Item->equalsExact() and removed some boilerplate code
2017-09-15 16:48:46 +01:00
0e51820dfb
Merge remote-tracking branch 'origin/master' into mcpe-1.2
2017-09-15 15:54:30 +01:00
d941bf8e74
Add vanilla-style crafting grid item evacuation server-side when closing the window in case something goes wrong
2017-09-15 13:22:53 +01:00
8b33f711d0
Allow spaces in player names
2017-09-14 10:15:35 +01:00
0fac3b9a9d
Added encode for InventoryTransactionPacket and refactor some stuff
2017-09-13 11:14:04 +01:00
23a38400e2
Added CraftingGrid and BigCraftingGrid, WIP stuff for crafting
...
moving whole stacks in & out of the crafting grid works now, splitting stacks is fucked up because the transaction system can't handle the same slot changing multiple times in one transaction
2017-09-12 19:34:06 +01:00
297172d111
Send creative inventory for all gamemodes, fixed recipe book
2017-09-12 14:40:16 +01:00
ebdfbe6bb9
Removed flight controls hack for spectator mode
...
THEY FINALLY FIXED IT
2017-09-07 19:06:36 +01:00
78d49f8e66
Merge branch 'php/7.0' into mcpe-1.2
2017-09-03 15:02:41 +01:00
89f5567476
Use Entity->getDirectionVector() more
2017-09-03 12:08:40 +01:00
75e32b11b7
Merge branch 'php/7.0' into mcpe-1.2
2017-09-02 18:29:53 +01:00
b071ce9c5a
Refactored projectile handling, added Item->onClickAir()
2017-09-02 11:57:26 +01:00
604d8ecf9a
Protocol changes for 1.2.0.25
2017-09-02 11:05:49 +01:00
5d75d3d5b6
Merge branch 'php/7.0' into mcpe-1.2
2017-09-01 23:10:58 +01:00
120cf56a47
Misc return typehints
2017-08-30 12:59:26 +01:00