Commit Graph

545 Commits

Author SHA1 Message Date
Andrew Steinborn 8a7ba25097 Fix Forge server ping mod serialization. Closes #131 2018-11-08 16:57:14 -05:00
Andrew Steinborn 762d9a3efb Fix plugin message forwarding from server to client. 2018-11-07 01:28:24 -05:00
Andrew Steinborn 73e3e1752a Plural. 2018-11-04 10:45:55 -05:00
Andrew Steinborn 70726bd07b Add /velocity plugins command. 2018-11-04 03:44:07 -05:00
Andrew Steinborn a378ccdee0 Refactored rate-limiting.
If rate-limiting is disabled, we now use a simple stub implementation
that is simpler to reason with.
2018-11-03 17:36:00 -04:00
Andrew Steinborn 89e51bbcb9 Fix up some more code style issues. 2018-11-03 01:54:26 -04:00
Andrew Steinborn e2389d96e9 Include implementation in the user-agent. 2018-11-03 01:39:28 -04:00
Andrew Steinborn f423169449 Fix issues with server connections. 2018-10-29 19:25:51 -04:00
Andrew Steinborn 2b53d14461 Simplify and fix bug in setConnectedServer()
Also, while I'm here, fix a typo from a recent PR.
2018-10-29 02:58:29 -04:00
Andrew Steinborn 826eddc754 Disconnect obsolete server connections as quickly as possible. 2018-10-28 23:00:26 -04:00
Andrew Steinborn 940717412d Merge pull request #128 from mikroskeem/fix-configuration-saving
Fix configuration saving
2018-10-28 12:53:53 -04:00
Mark Vainomaa e0330e9f27 Move and rename key escaping methods while I'm here 2018-10-28 18:18:44 +02:00
Mark Vainomaa 0c86f02c49 Save configuration after loading to ensure new options being present in file
For example if you had `[forced-hosts]` section missing, and `[servers]`
section not having entries similar to default forced hosts ones, then
new configuration would fail at validation and new options wouldn't be
saved to file at all.
2018-10-28 18:15:34 +02:00
Andrew Steinborn 070631902a Fix some suboptimal behavior in invoking KickedFromServerEvent.
Previously, the event would only fire when a player was kicked from the
current server they were on. Now, under certain cases, it can be fired
even if the player was already connected to a server.

To faciliate this, a new result (Notify) was introduced. This result
will "do the right thing" if the player is kicked from the current
server or is trying to connect to a different server than the one they
were on.
2018-10-28 03:32:18 -04:00
Andrew Steinborn 1310cd2c53 Mix of Checkstyle and SonarLint. 2018-10-28 03:18:15 -04:00
Andrew Steinborn 9806d57a13 More Checkstyle. 2018-10-28 02:36:03 -04:00
Andrew Steinborn 64380de497 Fix startup. 2018-10-28 01:45:20 -04:00
Andrew Steinborn d7aebfdc20 Note code style. 2018-10-28 01:34:24 -04:00
Andrew Steinborn 65ff9ebb39 Tiny legacy player info forwarding forwarding micro-optimization. 2018-10-28 01:10:23 -04:00
Andrew Steinborn 8a9d1b1ac9 Fixed even more Checkstyle issues, this time in the proxy components. 2018-10-28 01:02:54 -04:00
Andrew Steinborn 6467335f74 Fixed most Checkstyle warnings in the API. 2018-10-28 00:41:21 -04:00
Andrew Steinborn 25b5e00125 Reformat with Google code style and enforce Checkstyle.
Fixes #125
2018-10-27 23:45:36 -04:00
Andrew Steinborn 53aa92db92 Fix some low-hanging code smells using SonarLint. 2018-10-27 22:18:30 -04:00
Andrew Steinborn 32829c5637 Checker Framework integration (#126) 2018-10-27 21:45:42 -04:00
Andrew Steinborn dccf688da8 Merge pull request #124 from mikroskeem/misc-cleanups
[WIP] Misc cleanups
2018-10-27 16:08:19 -04:00
Mark Vainomaa 25f6ca410c Make servers list option more readable 2018-10-27 22:54:10 +03:00
Mark Vainomaa 2b4b77ef95 Fix missing constructor parameter and not loading show-plugins option from configuration 2018-10-27 22:52:04 +03:00
Mark Vainomaa b86622b849 Improve comments 2018-10-27 22:50:05 +03:00
Mark Vainomaa 1e0ec8ad66 Better description, make class abstract 2018-10-27 22:49:38 +03:00
Mark Vainomaa 85e43727cf Improve code style, grammar and other fixes 2018-10-27 22:49:37 +03:00
Mark Vainomaa fdc83261cb Add missing constructor parameter 2018-10-27 22:48:18 +03:00
Mark Vainomaa 793477b898 Improve code style 2018-10-27 22:48:18 +03:00
Andrew Steinborn f8ad686625 Merge pull request #123 from mikroskeem/feature/native-forced-hosts
[WIP] Forced hosts configuration support
2018-10-27 15:40:24 -04:00
Mark Vainomaa ff6a6ad40b Add native forced hosts support 2018-10-27 22:36:52 +03:00
Andrew Steinborn 877b4f4738 Merge pull request #122 from mikroskeem/feature/gs4-query-event
[WIP] GS4 query event
2018-10-27 14:39:49 -04:00
Mark Vainomaa 447e7d1d50 Adapt to upcoming Checker framework related changes 2018-10-27 21:38:20 +03:00
Mark Vainomaa ea43b8ff60 Add Query event 2018-10-27 19:57:48 +03:00
Andrew Steinborn 72283af867 Ignore all out/ directories from IntelliJ. 2018-10-26 16:11:03 -04:00
Andrew Steinborn a0e24ca247 Remove redundant ternary here. 2018-10-25 02:09:35 -04:00
Andrew Steinborn bdaf6da61b Update README. 2018-10-25 02:03:54 -04:00
Andrew Steinborn 3f612fb5c2 Update /velocity version so implementation stuff can be changed. 2018-10-25 01:56:41 -04:00
Andrew Steinborn c977ddec61 Introduce a "modular" /velocity command. 2018-10-25 01:43:11 -04:00
Andrew Steinborn a98fcc28fe Fix up console tab-completion again. 2018-10-25 01:42:57 -04:00
Andrew Steinborn 6c27ac9576 Merge pull request #121 from creeper123123321/separateprotocolv
Separate protocol version for new proxy <-> server connections
2018-10-23 15:26:57 -04:00
creeper123123321 782a10f36d Separate protocol version for new proxy <-> server connections 2018-10-23 16:07:42 -03:00
Andrew Steinborn bcf7761380 Disable auto-read temporarily as well 2018-10-23 13:51:33 -04:00
Andrew Steinborn 174cd4659b Fire ServerConnectedEvent and delay setting the server.
For ViaVersion
2018-10-23 13:49:50 -04:00
Andrew Steinborn fcef623847 Respect server protocol version when writing packets to the server.
Needed for ViaVersion.
2018-10-23 13:06:54 -04:00
Andrew Steinborn 8a8199ca33 Merge pull request #119 from Leymooo/1.13.2
1.13.2
2018-10-22 11:03:58 -04:00
Leymooo 35736d7a94 1.13.2 2018-10-22 17:22:28 +03:00