Commit Graph

545 Commits

Author SHA1 Message Date
KennyTV a2b3906c9e
Move bossbar to new legacy package, since it only works on <1.9
The newly created LegacyViaAPI is safe to use, but should hold methods that cannot be universally used on every version
2021-04-28 11:10:16 +02:00
KennyTV 95e20677fd
Clean up ProtocolPipeline
The filter functionality isn't something that's likely to be used again, so move out its usage and only check on <1.9 servers
2021-04-27 15:59:06 +02:00
KennyTV f1c8d271b1
Reformat imports
The package rename wasn't done through refactoring but through simple replaces to not make git choke on diffs
2021-04-27 13:42:36 +02:00
KennyTV 318c49cf30
More interfaces, keep ProtocolRegistry.SERVER_PROTOCOL legacy api 2021-04-27 13:25:18 +02:00
KennyTV 30d122e7fa
Create some fancy interfaces 2021-04-26 23:01:55 +02:00
KennyTV 49d386063d
Add ProtocolVersion to legacy api 2021-04-26 21:45:27 +02:00
KennyTV deec4b521e
Move some packages and classes around 2021-04-26 21:27:59 +02:00
KennyTV a25a5634de
Change package/imports in classes and build configs 2021-04-26 20:52:34 +02:00
KennyTV a3b1ce817e
Repackage to com.viaversion
This process will be split into multiple commits for git not to choke on.
2021-04-26 20:46:30 +02:00
KennyTV ad0842c107
Bump version to 4.0.0, remove ProtocolRegistry
The bump was overdue given the breakages that have happened
2021-04-23 22:48:08 +02:00
KennyTV 144c24c276
Move packet tracking methods out of UserConnectionn 2021-04-20 13:24:10 +02:00
Jason 87d54f1103
Clean up build scripts using new Gradle features (#2436)
* Make use of `TYPESAFE_PROJECT_ACCESSORS` and `VERSION_CATALOGS` Gradle feature previews to clean up build scripts

* Bump setup-java action to v2, specify AdoptOpenJDK distribution
2021-04-14 14:16:48 +02:00
KennyTV c7e5b4a297
Update to Gradle 7.0 2021-04-13 12:37:29 +02:00
KennyTV 7300a69817
Use Paper method to get server protocol version if possible 2021-04-12 20:11:13 +02:00
KennyTV 26bbc92f94
Warn about potentially unstable plugins/server software 2021-04-03 17:01:57 +02:00
MrMicky 9ccd8bff33
Fix error with shit-click on offhand slot on 1.8 servers (#2419) 2021-04-03 09:09:00 +02:00
KennyTV 070c7f5808
Move to checker qual nullability annotations 2021-04-02 14:15:30 +02:00
KennyTV a63f2ab6fe
Improve server version API 2021-03-26 12:51:38 +01:00
KennyTV 63356207a3
ProtocolRegistry -> ProtocolManager interface 2021-03-24 15:30:03 +01:00
KennyTV 0ab2c626aa
Split parts of common into api; We are now GPL, api is MIT
This does not affect any previous states of this project; only future modifications as well as the project as a whole will be under the GNU General Public License from now on. The newly introduced api directory, partly split from common, is an exception to this, still being licensed under the MIT license.

See the README for details.
2021-03-24 14:02:37 +01:00
KennyTV c059e57771
Move javassist to Bukkit moduke 2021-02-25 09:19:15 +01:00
jmp 024c36c584
Switch to indra, attempt to fix shading and universal jar 2021-02-25 09:19:14 +01:00
KennyTV ef6c347194
*cries in elephant* 2021-02-25 09:19:14 +01:00
KennyTV c0dabfe097
*cries in elephant* 2021-02-25 09:18:51 +01:00
KennyTV 0a41d36220
21w08a (aka the great splittening) 2021-02-24 23:38:28 +01:00
KennyTV 37004d8c4f
21w07a 2021-02-17 18:55:43 +01:00
KennyTV e7b489f66e
This is actually 21w06a 2021-02-11 09:30:30 +01:00
KennyTV 4ff98256f6
21w06a 2021-02-10 19:09:33 +01:00
Myles d1a0d629df Merge branch 'master' into dev 2021-02-09 16:32:44 +00:00
Myles 50bfc86706 Revert "The bytebuf doesn't need to be rewritten"
This reverts commit ac877d0b1a.
2021-02-09 16:32:31 +00:00
Myles 628979f923 Merge branch 'master' into dev 2021-02-09 10:36:54 +00:00
Myles 24b4cd8dbd Merge branch 'reduce-decode-rewriting' 2021-02-09 10:36:13 +00:00
Myles 727c575a1c Run QuickMove on next tick to improve likeliness of success (fixes #2044)
Since it is 5 ticks later, the inventory may be closed
2021-02-09 10:35:13 +00:00
Myles ac877d0b1a The bytebuf doesn't need to be rewritten 2021-02-06 15:29:36 +00:00
KennyTV e09c3b0159
Merge remote-tracking branch 'origin/master' into dev 2021-02-06 15:38:06 +01:00
creeper123123321 6941b48038 fixed pending #2291 changes 2021-02-06 10:21:34 -03:00
KennyTV 59e05e3096
21w05b 2021-02-04 19:11:24 +01:00
KennyTV 554fbb49c5
21w05a 2021-02-03 19:30:28 +01:00
KennyTV c8c54786fc
21w03a 2021-01-20 17:59:34 +01:00
KennyTV 4cc8a3f092
Return -1 in getPlayerVersion if the player is not connected 2021-01-17 13:59:26 +01:00
Thibaut Gautier 91319402f3 Fixed encoding not properly working with other packet reading libraries
Injecting a message to byte encoder beforehand would break outbound packets in ViaVersion. This solution is a good fix which won't impact anything.
2021-01-17 13:12:18 +01:00
KennyTV 6622b7dcff
20w51a 2020-12-16 18:57:16 +01:00
Myles c0fb81946e Snapshot 2020-12-12 13:16:13 +00:00
Myles 6c440513ba 3.2.1 2020-12-12 13:07:59 +00:00
KennyTV f35c48bed2
Merge branch 'master' into dev 2020-12-09 21:39:13 +01:00
KennyTV 965814d833
Fix ProtocolLib check (again)
#BlameGerry (again)
2020-12-09 21:31:00 +01:00
KennyTV 4714a3f03a
Merge branch 'master' into dev 2020-12-09 11:31:51 +01:00
KennyTV f08db2d234
Fix startup
#BlameGerry
2020-12-09 11:31:37 +01:00
KennyTV 52b95eab28
Merge remote-tracking branch 'origin/master' into dev 2020-12-09 09:17:37 +01:00
Gerrygames 24c56a239e
Fix PacketWrapper#sendToServer bypassing ProtocolLib (#2229) 2020-12-08 19:15:55 +01:00
KennyTV 7858b998ca
Reduce chance of quick move task while disabling
Closes #2226
2020-12-08 12:42:13 +01:00
KennyTV 8a11b577eb
Current WIP 20w49a 2020-12-02 21:57:32 +01:00
KennyTV c671a6deed
20w48a (probably) 2020-11-25 17:15:43 +01:00
KennyTV 67fda72bdd
20w46a 2020-11-11 19:13:31 +01:00
KennyTV 0d3f729679
20w45a
Missing: Diff mappings
2020-11-11 16:54:18 +01:00
KennyTV 91f3d0fdb7
Bump version to 3.2.1-SNAPSHOT 2020-11-03 09:49:46 +01:00
KennyTV b3e8ad9164
3.2.0 Release, 1.16.4 2020-11-02 19:40:04 +01:00
creeper123123321 4813cc3077
inject into velocity backend (currently broken)
Add client-side mode for UserConnection

remove unused code

fix duplicate method on rebase
2020-10-28 19:51:01 +01:00
KennyTV 1a4c34afcf
1.16.4-rc1 2020-10-27 18:34:59 +01:00
KennyTV 9a24129e49
1.16.4-pre2 2020-10-22 17:43:38 +02:00
KennyTV 7d96efc645
Minor ProtocolVersion refactor 2020-10-16 18:21:45 +02:00
KennyTV 6371b77b94
Prepare hackery for 1.16.4 2020-10-07 12:32:52 +02:00
KennyTV d36def89e1 Abstract mapping loading 2020-09-04 11:04:44 +02:00
creeper123123321 53d22dcff7 back to snapshot 2020-08-11 13:48:26 -03:00
KennyTV 6060954f87
3.1.0 Release - 1.16.2 support 2020-08-11 12:44:41 +02:00
KennyTV da77c32a0d
1.16.2-rc2 2020-08-10 14:53:32 +02:00
KennyTV 7c8b56b3cb
1.16.2-rc1 2020-08-07 17:35:48 +02:00
KennyTV f6fec5b93b
1.16.2-pre3 (almost)
The Nether does not have its custom fog, no idea why yet
2020-08-06 20:21:54 +02:00
KennyTV cf7d49aec5
1.16.2-pre2 2020-08-05 18:19:00 +02:00
KennyTV 49211240a3
1.16.2-Pre1 2020-07-29 17:22:04 +02:00
KennyTV 48f8412440
20w30a 2020-07-22 21:47:18 +02:00
KennyTV 2c9ce50312
Bump version to 3.1.0- 2020-07-22 09:17:28 +02:00
KennyTV 37f5948b0a
20w29a 2020-07-15 17:44:24 +02:00
KennyTV 7171802b78
20w28a 2020-07-08 21:01:18 +02:00
KennyTV 4f392ba361
Suffix snapshot version again
(Now accepted by ViaFabric)
2020-07-02 15:57:52 +02:00
KennyTV 1ec2551fcc
Change version back to 3.0.2-SNAPSHOT
Spam is over, I promise
2020-07-01 20:42:07 +02:00
KennyTV 3ddd289b49
20w27a
TODO: Yoink recipe rewriter from ViaBackwards
2020-07-01 19:44:11 +02:00
KennyTV f16ff65933
Move handshake exceptions filter to exceptionCaught handling 2020-07-01 13:22:00 +02:00
KennyTV d414106d5a
Only print InformativeException cases in codec handlers 2020-06-25 12:51:51 +02:00
KennyTV d86ac64ac9
Fix PS support
Fixes #1825
2020-06-25 12:39:49 +02:00
KennyTV dd0ec0033a
Bukkit is no more
... no longer deployed that is
2020-06-25 10:44:53 +02:00
Myles 3ee94415a9 Back to snapshot 2020-06-24 13:34:17 +01:00
Myles 1a7ce908b8 Release 2020-06-24 13:16:45 +01:00
Myles 42029770a2 Back to snapshot 2020-06-23 14:40:22 +01:00
Myles cf00b9ee7c 3.0.0 2020-06-23 14:07:27 +01:00
KennyTV 67cce53b72
Revert removal of concurrency hacks
Apparently still causes issues with PS, we'll investigate this properly at a later date
2020-06-22 17:45:10 +02:00
KennyTV 8d7c7743b8
Only print codec netty exceptions 2020-06-14 18:15:09 +02:00
KennyTV 029f399a14
Rename ViaCodecException to CancelCodecException 2020-06-10 08:58:40 +02:00
KennyTV 7588609c56
Fix cancelexception printing 2020-06-09 21:29:19 +02:00
KennyTV aa59ed112a
Fixup docs, remove ConcurrentList 2020-06-09 17:53:31 +02:00
KennyTV 529da10615
Move ProtocolInfo into its own field 2020-06-07 12:19:36 +02:00
KennyTV f2d6691af7
Minor javadoc changes 2020-06-07 11:32:49 +02:00
creeper123123321 a8a1e9448e
Netty handler tidy 2020-06-07 10:41:29 +02:00
KennyTV 653ca4b322
Fix toggleglide listener swimming check 2020-05-06 09:30:16 +02:00
KennyTV 53b8c2328e
Uncache UserConnection on channel close, fix memory leak 2020-04-23 20:24:16 +02:00
creeper123123321 dd5cbb0e4c Merge branch 'abstraction' of https://github.com/ViaVersion/ViaVersion into portedplayerschange 2020-04-15 11:39:13 -03:00
creeper123123321 17881b342a javadoc, remove ViaAPIs getPortedPlayers, fix ViaManager.getPortedPlayers name, rename to ViaAPI#isInjected 2020-04-15 11:35:09 -03:00
KennyTV 8f08a32c5a
Bai bai to more lombok usage once more 2020-04-13 20:58:24 +02:00
KennyTV fdb6137339
Create bukkit-legacy module for 1.8 magic method usage
No real changes to the classes other than them being moved
2020-04-13 20:19:55 +02:00
KennyTV f173cf73d4
Fix 1.15 EntityToggleGlideEvent cancelling on Bukkit
Since 1.15, cancelling can only be done by updating the player's metadata
2020-04-13 20:03:46 +02:00
creeper123123321 a105c5cb11 Make getPortedPlayers() private, update bungee-api, remove some lombok usage, create ViaConnectionManager 2020-04-12 16:47:32 -03:00
creeper123123321 ca78bf9851 Remove portedPlayers field, let platform handle players 2020-04-12 15:37:08 -03:00
KennyTV 081781f223 Some cleanup 2020-04-03 19:32:31 +02:00
KennyTV e658304405 Asynchronously load mappings (until needed), create optional mappings cache for VB 2020-04-03 19:32:30 +02:00
KennyTV 681a0dc0e4 Remove deprecated api, remove a bit of magic 2020-02-10 10:05:56 +01:00
KennyTV 7f6c429a55 Minor blockconnection cleanup, reduce map lookups 2020-01-28 13:31:36 +01:00
KennyTV 598b51a4bf Do not unnecessarily register tasks/listeners 2020-01-22 14:55:39 +01:00
KennyTV b06b9c69ca Do not unnecessarily register tasks/listeners 2020-01-22 14:14:43 +01:00
Myles cd2ca76236 Merge branch 'master' into abstraction 2020-01-14 19:12:42 +00:00
Myles 9598e0e4f8 Update authors 2020-01-14 19:12:24 +00:00
KennyTV fddbeda81e Back to snapshot 2019-12-20 16:29:10 +01:00
KennyTV 5a1dadf476 1.15.1 2019-12-17 14:54:51 +01:00
creeper123123321 d6b52bcc54 Merge remote-tracking branch 'upstream/abstraction' into primitive_types 2019-12-12 15:23:32 -03:00
KennyTV be4d071250 1.15.1-pre1 2019-12-12 16:32:53 +01:00
Myles c1b11a55d5 Back to SNAPSHOT 2019-12-11 11:16:05 +00:00
Myles a21a2079c6 2.2.1 2019-12-11 11:12:22 +00:00
Myles 68ac978d45 Back to SNAPSHOT 2019-12-10 15:34:42 +00:00
Myles c85d4224ad 1.15 protocol + 2.2.0 2019-12-10 15:29:26 +00:00
Gerrygames ea045e6c34 1.15-pre7 2019-12-09 13:48:06 +01:00
KennyTV 90e1d7236e 1.15-pre6 2019-12-07 10:05:29 +01:00
Gerrygames a68fca9dda 1.15-pre5 2019-12-05 15:03:45 +01:00
Gerrygames 762151f067 1.15-rep4 2019-12-03 14:22:54 +01:00
KennyTV 5c7520f552 1.15-pre3 2019-11-28 20:10:19 +01:00
KennyTV 08e145f831 1.15-pre2 2019-11-25 19:37:02 +01:00
KennyTV 21cad97f3f Some fixes, move blockconnection method to bukkit config 2019-11-25 18:34:55 +01:00
creeper123123321 de97b5b15f
fix typo 2019-11-24 18:43:10 -03:00
creeper123123321 1e8d04a07d remove deprecated methods and constructor on item and position, inline some uses of position 2019-11-24 17:55:46 -03:00
KennyTV 907516eb71 Hold config values in fields 2019-11-22 22:00:41 +01:00
creeper123123321 062d3759be Use primitive types in Position and BlockFace, remove world block connections on Sponge, clean code in 1.8 entity tracker, add constructor for cloning Item and Position 2019-11-22 15:13:41 -03:00
Gerrygames 582e4a11d4 1.15 pre1 2019-11-21 18:34:29 +01:00
creeper123123321 385a483a29 19w46b 2019-11-15 11:19:31 -03:00
Gerrygames c3fa950a9f 19w46a 2019-11-13 17:27:51 +01:00
KennyTV b3dc05e5ce 19w45b 2019-11-08 14:26:20 +01:00
Gerrygames d16a760466 19w45a 2019-11-07 18:42:05 +01:00
creeper123123321 fd065fb7c5
merge dev 2019-10-30 14:24:22 -03:00
Gerrygames 12279731ad 19w44a 2019-10-30 17:14:00 +01:00
KennyTV 3257c79e69 Major version bump to 3.0.0-SNAPSHOT 2019-10-24 21:58:22 +02:00
Gerrygames bd805bfdc4 19w42a 2019-10-16 18:07:58 +02:00
Gerrygames 3ffc55b539 19w41a 2019-10-09 18:06:37 +02:00
KennyTV a9c49d948a Merge remote-tracking branch 'upstream/master' into dev
# Conflicts:
#	bukkit/src/main/java/us/myles/ViaVersion/bukkit/platform/BukkitViaConfig.java
#	bungee/src/main/java/us/myles/ViaVersion/bungee/platform/BungeeViaConfig.java
#	common/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java
#	common/src/main/resources/assets/viaversion/config.yml
#	sponge/src/main/java/us/myles/ViaVersion/sponge/platform/SpongeViaConfig.java
#	velocity/src/main/java/us/myles/ViaVersion/velocity/platform/VelocityViaConfig.java
2019-10-02 16:21:37 +02:00
KennyTV 79a2304728 19w40a 2019-10-02 16:19:56 +02:00
KennyTV 42a7b5a1b2 Merge upstream/dev into abstraction 2019-10-02 09:50:51 +02:00
Lukas 7e008226ec Fix 1.14+ walk animation (#1469)
* Do not send NaN health metadata to 1.14+ clients
* Added config option 'fix-1_14-health-nan'
2019-10-01 09:04:58 +01:00
Gerrygames dce64a0b34 19w39a (#1465) 2019-09-27 16:17:40 +01:00
Nassim 9408946b36 Merge master into abstraction (#1457) 2019-09-19 10:22:06 +01:00
Nassim cad6e7604d Merge dev, update 1.15 to abstraction, reduce helper mapping (#1456) 2019-09-19 09:27:48 +01:00
Gerrygames e452289603 19w38b, fix bell remap (#1455)
* 19w38a, fix bell remap

* 19w38b
2019-09-18 17:32:13 +01:00
Gerrygames c1cce6be9a 19w37a (#1451)
* 19w36a

* 19w37a
2019-09-11 16:09:44 +01:00
Nassim 5eb3771704 Fix no light for non full blocks (#1414) 2019-09-09 13:02:30 +01:00
Gerrygames 23eadaeaee 19w36a (#1435) 2019-09-04 16:49:27 +01:00