Dylan K. Taylor
889cd5e206
PlayerNetworkSessionAdapter: clean up leftovers from multi quote support for json decode
2020-02-05 20:45:13 +00:00
Dylan K. Taylor
99038c752c
Avoid usage of for-loop vars outside of for-loop context
...
these problems were reported by PHPStan strict rules. They aren't actually bugs, but they could become bugs in the future.
2020-02-05 13:16:09 +00:00
Dylan K. Taylor
f624871b3f
strip extra blank lines (php-cs-fixer)
2020-01-22 14:50:29 +00:00
Dylan K. Taylor
c4793241f5
Mass removal of useless @param/@return PHPDoc annotations, pass 1
2020-01-21 15:10:18 +00:00
Dylan K. Taylor
6b61efcfc8
remove unused imports
2019-12-09 19:49:21 +00:00
Stephen
be9c413a9e
Added network components for skins, to collect instead of throw out data
2019-11-20 21:43:41 -05:00
Stephen
635bb08fb9
Update playerskinpacket to use the strings
2019-11-10 19:39:07 -05:00
Dylan K. Taylor
e60962c31f
reverse BC-breaking change to Player->changeSkin()
...
this change would cause LSP violations for subclasses
2019-11-08 11:22:55 +00:00
Stephen
07f19dd4a1
Fixed respawning
2019-11-05 22:33:12 -05:00
Drew
cd2b60a860
Initial update to 1.13
2019-10-30 21:36:08 -04:00
Dylan T
63d7e7b811
Fixed decoding form responses with double commas inside quotes ( #3131 )
...
closes #3113
2019-10-01 14:28:55 +01:00
Dylan K. Taylor
a883c35fd0
clean up yesterday's mess
2019-07-13 18:15:14 +01:00
Dylan K. Taylor
c58a1bf9b7
Protocol changes for 1.12.0.28
2019-07-12 19:00:15 +01:00
Dylan K. Taylor
eb161f8e1c
Use base64 instead of hex to display binary in some places
...
base64 takes less space than hex, which is beneficial for logging larger payloads.
2019-06-06 14:43:20 +01:00
Dylan K. Taylor
79b7e08e60
Silence NetworkStackLatencyPacket spam from dev builds
2019-02-23 11:03:50 +00:00
Dylan K. Taylor
4b9a142a5d
Import global functions and constants for enhanced performance
...
This is better for performance because these then don't need to be reevaluated every time they are called.
When encountering an unqualified function or constant reference, PHP will first try to locate a symbol in the current namespace by that name, and then fall back to the global namespace.
This short-circuits the check, which has substantial performance effects in some cases - in particular, ord(), chr() and strlen() show ~1500x faster calls when they are fully qualified.
However, this doesn't mean that PM is getting a massive amount faster. In real world terms, this translates to about 10-15% performance improvement.
But before anyone gets excited, you should know that the CodeOptimizer in the PreProcessor repo has been applying fully-qualified symbol optimizations to Jenkins builds for years, which is one of the reasons why Jenkins builds have better performance than home-built or source installations.
We're choosing to do this for the sake of future SafePHP integration and also to be able to get rid of the buggy CodeOptimizer, so that phar and source are more consistent.
2019-01-04 20:43:15 +00:00
Dylan K. Taylor
c05697f506
Merge branch 'release/3.4' into release/3.5
2018-12-14 09:39:21 +00:00
Dylan T
660d42e8d1
Backport usage of SetLocalPlayerAsInitializedPacket to 3.4 ( #2558 )
...
This fixes various problems, such as forms not working on PlayerJoinEvent.
2018-12-13 20:07:17 +00:00
Dylan K. Taylor
30f5a8fac6
Protocol changes for 1.8.0 release
2018-12-11 21:05:03 +00:00
Dylan K. Taylor
de6d62aba2
Merge branch 'release/3.2' into release/3.3
2018-10-09 22:51:40 +01:00
Dylan K. Taylor
32836cbfb8
Don't handle remaining packets in a batch when an earlier one triggered a disconnect
2018-10-09 22:50:02 +01:00
Dylan K. Taylor
495fdbd19f
Move block and network namespaces away from PluginManager->callEvent()
...
the original step that wasn't supposed to cause conflicts, caused messy conflicts... so I might as well do this part too
2018-10-05 18:22:49 +01:00
Dylan K. Taylor
b66095cb36
Added a hack for MC W10 JSON empty strings bug ( #2383 )
2018-08-19 10:10:40 +01:00
Dylan K. Taylor
df8e10cad9
Forms API, part 1: add Player->sendForm() and Form interface
...
There's no implementation here yet, but that can come later. This lays the ground for allowing plugins to have an integrated method to send forms, as well as a solution to the ID conflict problem.
A built in implementation should not be a concretion and it should be able to be swapped for third party implementations. This enables the possiblity to do so.
2018-08-14 16:06:55 +01:00
Dylan K. Taylor
e4b6a18404
Player: removed redundant proxy function
2018-03-23 19:56:35 +00:00
Dylan K. Taylor
73e09392b6
Timings: Clean up some terrible code, move namespaces
2018-03-19 19:05:51 +00:00
Dylan K. Taylor
ecd830463c
PlayerNetworkSessionAdapter: Remove dead TODO
2018-02-16 11:49:28 +00:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
dd8a772d43
Removed handler for PlayerHotbarPacket
...
this thing is useless now, and the equipment stuff can be done with MobEquipmentPacket anyway.
2017-11-18 16:03:18 +00:00
Dylan K. Taylor
ae76ac82c8
Removed unnecessary delegate packet handlers
...
let's keep all the TODOs in one place
2017-10-09 09:44:22 +01:00
Sandertv
81dee2f9fc
Adding writable and written books. ( #1397 )
...
* Adding writable and written books.
* Added a PlayerEditBookEvent.
* Changed BookEditPacket field names.
2017-10-08 11:49:57 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
ccbdb77618
Cleaned up LoginPacket handling, don't nuke the buffer
2017-09-26 09:49:35 +01:00
Dylan K. Taylor
240cc3043a
Rewritten crafting, fixed #45
2017-09-24 14:14:24 +01:00
Dylan K. Taylor
8958b3c51c
Many many changes related to inventory transactions, fixed item dropping, fixed creative menu
2017-08-11 19:57:30 +01:00
Dylan K. Taylor
74ee94b385
Duct tape for inventory transactions, removed ContainerSetSlotPacket
2017-08-10 20:05:15 +01:00
Dylan K. Taylor
7958fffa07
Move some code around to fix block placing, breaking, and throwing snowballs
2017-08-07 12:28:07 +01:00
Dylan K. Taylor
63d2b341b9
Day 2
2017-08-06 17:21:51 +01:00
Dylan K. Taylor
77cd8e7799
More broken mess to spawn 1.2
2017-08-06 17:21:51 +01:00
Dylan K. Taylor
30df0c2418
Refactor a bunch of network-related things for easier auto-generation of protocol stuff
2017-07-12 16:32:39 +01:00
Dylan K. Taylor
e485999218
Just cut the adapter loose instead of needing extra fields for this
2017-07-12 12:28:54 +01:00
Dylan K. Taylor
650afe2d94
Added PlayerNetworkSessionAdapter to allow abstraction of NetworkSession base
2017-07-12 12:28:54 +01:00