-
-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to directly communicate with Paper servers #1488
Comments
Oh,I think this proposal is very good. |
I don't really see the point in this |
Because you are asking for a use case: For redis, you need a running redis server, which puts both more weight on the person who uses your plugin and who develops your plugin. |
Also external communication could be used to retrieve player data for another backend. |
It is fairly clear that this is only a viable option for networks who only use Paper/Velocity together. Cross-platform is not really possible since we don't have control over any of the other platforms. The main reason I view in why anybody would prefer this over protoweaver is just that it doesn't require a dependency + due to it being PaperMC maintained, people have an easier time finding and figuring stuff like that out. I, for instance, wasn't aware of protoweaver. My vision for this is mainly a byte array based approach (or maybe a wrapper around that, similar to PDC). Sending from Velocity to Paper backend ideally just provides some Receiving would just be handled as simple event registers. The main use case I had in mind is just player-independent data sync. For bigger data values, you'd obviously use a database. But similar could be said for concepts like PDC - It's great, but for very big amounts of data, you should instead use a database. I just think that for the initial "a database is overkill", this system could be better |
Sending data about a player when that player leaves is a good example. You can't do it at that point because the connection is already lost. |
I've always been conflicted on this sorta thing, it's been one of those things that I've wanted to look into but, never something I've wanted to actually deploy
|
Requested Feature
What I would like to suggest is a feature which is not only tied to Velocity, but also Paper.
In short, I think it would be great to be able to directly communicate with backend Paper servers from the Velocity proxy. This could be done in a way similar to plugin messages (maybe a bit more wrapped together, allowing sending of more complex data types?), where either proxy or paper server send out a message and the receiver may receive and handle it.
Why is this needed?
I think this is mainly useful in case of sending "general" information without the need to rely on a specific player's connection.
Alternative Solutions
Currently, the only way to send information from or to backend servers is using plugin messages. This system has a few flaws though:
Additional Information
I have decided to open the issue on the Velocity repo instead of the Paper one, since I feel like this is more a concern to developers who work on proxy servers instead of developers purely working with Paper.
The text was updated successfully, but these errors were encountered: