Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Steinborn 17a5afcc9a Fix up some checkstyle stuff and include vendor in brand. 2018-11-15 02:36:48 -05:00
Andrew Steinborn 66f47ecff1 Filter out subcommands in /velocity that users can't access. 2018-11-15 02:17:59 -05:00
Andrew Steinborn 2b0daa2122 Explicitly exit the proxy if required. 2018-11-14 01:07:34 -05:00
Andrew Steinborn 5e0b9d09e7 Fix ServerPreConnectEvent not allowing overriding of servers. 2018-11-14 00:55:20 -05:00
Andrew Steinborn 6354f10874 Correct technical typo. 2018-11-14 00:29:51 -05:00
Andrew Steinborn c94794a845 Properly register client channels. 2018-11-10 23:20:33 -05:00
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 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 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 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 f6cac0f50a Relax registration checks for same servers somewhat.
If a server with the same ServerInfo is attempting to be re-registered,
we will return the existing registered server, which is less surprising
behavior than before.
2018-10-21 20:03:38 -04:00
Andrew Steinborn 3bd48dec99 Add convenience connectWithIndication() method. 2018-10-21 17:49:51 -04:00
Andrew Steinborn 8d97e98920 Fix forwarding secrets being reset to default 2018-10-20 13:47:37 -04:00
Andrew Steinborn a6e57f89aa Fix #117 2018-10-18 21:16:20 -04:00
Andrew Steinborn 19956a2ed7 Include forwarding version in modern forwarding
This is currently version 1.
2018-10-18 14:42:10 -04:00
Andrew Steinborn 1d8b11e47b Oh well... 2018-10-15 21:40:34 -04:00
Andrew Steinborn 51473155c0 Fix Jenkinsfile 2018-10-15 21:38:24 -04:00
Andrew Steinborn 88d9979e8b Make sure to not archive PR JAR artifacts. 2018-10-15 21:36:31 -04:00
Andrew Steinborn d3b1bc9e34 Remove debug code that accidentally slipped in. 2018-10-15 21:29:33 -04:00
Andrew Steinborn 8ec273050b Remove redundant obsolete connection-checking code. 2018-10-15 17:06:37 -04:00
Andrew Steinborn 8eb7ecba83 Actually populate ForgeConstants 2018-10-15 17:02:19 -04:00
Andrew Steinborn 51c402e3d3 Create a specific Forge-related package 2018-10-15 17:01:18 -04:00
Andrew Steinborn b7d7e3cc89 Switch forwarding mode to none by default 2018-10-15 14:27:50 -04:00
Andrew Steinborn 33f333d8cc Clean up FML/handshake stuff from virtual host. 2018-10-13 02:34:53 -04:00
Andrew Steinborn 2f0ba42fa0 Also make sure tab list completion doesn't crash the proxy 2018-10-12 22:12:15 -04:00
Andrew Steinborn 7578aa27a9 More reliably tear down connections and fire DisconnectEvent. Fixes #111 2018-10-09 19:02:15 -04:00
Andrew Steinborn 222e90a9f0 Unbreak Forge logic. 2018-10-05 19:04:10 -04:00
Andrew Steinborn d59c8874b7 Fix issues with UUIDs with leading zeroes. Fixes #109 2018-10-05 02:39:11 -04:00
Andrew Steinborn d6fb3a210e Shorten connection errors to a more reasonable length. Fixes #58 2018-10-04 10:09:14 -04:00
Andrew Steinborn 20d0c39576 Update Netty to 4.1.30.Final 2018-09-30 19:09:44 -04:00
Andrew Steinborn 3777ab5c8f Fix PlayerChatEvent Javadoc 2018-09-30 18:32:01 -04:00
Andrew Steinborn b6a9299f9f Do tab list clearing into one packet 2018-09-30 18:27:07 -04:00
Andrew Steinborn 732caa2d40 Remove RecordingThreadFactory since it's actually a terrible idea 2018-09-30 00:05:48 -04:00
Andrew Steinborn 2d2258d667 Misc cleanup 2018-09-29 23:57:40 -04:00
Andrew Steinborn eddf01fc32 Reduce duplication between annotation processor and proxy. 2018-09-29 23:28:44 -04:00
Andrew Steinborn 1da1382b16 some toString() changes 2018-09-29 16:22:50 -04:00
Andrew Steinborn 33a2cb7bad Less verbose version 2018-09-29 14:54:46 -04:00
Andrew Steinborn 5af09f906a Fix a bug where it would try to register legacy channels(!) on 1.13+ 2018-09-29 14:53:04 -04:00
Andrew Steinborn a44bb3b048 Remove more junk 2018-09-29 14:37:42 -04:00
Andrew Steinborn dc594e692d Missed a few spots. 2018-09-29 03:39:38 -04:00
Andrew Steinborn 8be7ca9ab5 Apply final modifier to all classes in the api module. 2018-09-29 03:38:42 -04:00
Andrew Steinborn 75c3bb5ee6 Clean up vestigal stuff 2018-09-29 03:32:44 -04:00
Andrew Steinborn 97d541d146 Warn if someone tries to register the plugin instance as a listener 2018-09-29 03:15:49 -04:00
Andrew Steinborn 79d566bcee Finished the port to new session handler stuff 2018-09-29 02:55:52 -04:00
Andrew Steinborn c7bd0d100e Started refactoring session handlers 2018-09-29 02:16:34 -04:00
Andrew Steinborn 6cd0a6b148 Introduce Channel#eventLoop() shorthand
This is such a common call that it makes a lot of sense to go ahead
and expose this.
2018-09-29 01:38:30 -04:00
Andrew Steinborn 5ab346a02b Don't tediously hardcode the names of channels if we can help it 2018-09-29 01:34:45 -04:00
Andrew Steinborn f04599ae68 Clean up some plugin message channel code 2018-09-29 01:28:07 -04:00
Andrew Steinborn f569a07b2e Move channel registrar to util 2018-09-29 01:25:24 -04:00
Andrew Steinborn e6c178aae7 Cleaned up Java plugin loader 2018-09-27 15:52:31 -04:00
Andrew Steinborn 8c98395d51 Remove redundant contains check 2018-09-27 15:20:24 -04:00
Andrew Steinborn 0f5dc4b248 That's not good 2018-09-27 02:45:39 -04:00
Andrew Steinborn 731186ca10 Redesigned the /velocity command somewhat 2018-09-27 02:44:45 -04:00
Andrew Steinborn d4910d9edc Remove potentially high-frequency usages of streams 2018-09-27 02:37:53 -04:00
Andrew Steinborn 63f22dc2de Extra clarity for server/MinecraftConnection naming 2018-09-27 02:35:10 -04:00
Andrew Steinborn 403fec13d8 Move UuidUtils test to api module 2018-09-27 02:33:47 -04:00
Andrew Steinborn d639e47fbf Fix a number of issues with dependency resolution and add unit tests 2018-09-27 00:51:33 -04:00
Andrew Steinborn c89f3ea468 Remove scoreboard packets
We don't use these any more, and to be frank, it's kind of scary to
update anyway.
2018-09-24 02:04:12 -04:00
Andrew Steinborn 6c61aa49f3 Sanity: reset ping ID after getting the right KeepAlive 2018-09-22 20:38:59 -04:00
Andrew Steinborn 9e999e1e5a Maintain keep alives on the server connection, not on the client. 2018-09-21 23:19:12 -04:00
Andrew Steinborn 1e04d27bb7 Never launch the Gradle daemon
Since we are using separate containers for each pipeline stage, the
daemons get nicked once the stage is done. Why bother having them?
2018-09-21 12:49:02 -04:00
Andrew Steinborn b894dfbdd4 Combine the javadoc and publish stages together
In other words, the security-sensitive stuff now runs on its own agent.
2018-09-21 12:44:17 -04:00
Andrew Steinborn df06d85d62 Deploy separate agents per stage 2018-09-21 12:40:34 -04:00
Andrew Steinborn 284f90183f Add missing null check here 2018-09-20 22:44:26 -04:00
Andrew Steinborn d06028e0f8 ProxyServer#broadcast() 2018-09-20 22:43:58 -04:00
Andrew Steinborn 0e901e2843 Update README 2018-09-20 16:58:50 -04:00
Andrew Steinborn 8763573ae6 Major improvements to tab complete support.
- Removed half-baked 1.13 support that didn't even work anyway. Perhaps
  in the future we could restore it by rewriting the available commands
  packet.
- Proxy commands now show up in tab complete responses where possible.
2018-09-20 16:39:50 -04:00
Andrew Steinborn e577d6b6f5 Fix typo from PR. 2018-09-20 16:09:46 -04:00
Andrew Steinborn 95c761479f Make connections more robust 2018-09-19 21:29:07 -04:00
Andrew Steinborn b7e6334324 Add toString() to PluginMessageEvent 2018-09-19 15:20:18 -04:00
Andrew Steinborn 5c3e1adee2 Fix this annoying wart 2018-09-19 14:57:53 -04:00
Andrew Steinborn 50c27066e2 Import cleanup 2018-09-19 14:56:49 -04:00
Andrew Steinborn 1be508ed5e Merge branch 'master' into merged 2018-09-19 14:54:44 -04:00
Andrew Steinborn 50316f2f1c Merge branch 'master' into merged 2018-09-19 14:54:03 -04:00
Andrew Steinborn c29b92c1bf Merge branch 'plugin-message-event' into merged 2018-09-19 14:52:28 -04:00