PHP到Java的连接 [英] PHP to Java Connection
问题描述
我正在一个项目中,我应该按网页上的一个按钮发送,然后在Java中执行命令。我正在寻找的类似于此。假设我按下一个按钮,然后它向我的世界服务器发送命令以重新加载插件。我将如何实现这一目标?谢谢
I am working on a project where I send supposedly press a button on a webpage and it then executes a command in java. What I'm looking for is something like this. Say if I pressed a button and then it sends a command to the minecraft server to reload plugins. How would I go achieving this? Thanks
推荐答案
当您必须在不同应用程序之间进行通信时,可能会需要一座桥梁。在您的情况下,我建议使用Minecraft的 RCON 服务(必须在配置中启用)或执行此操作的插件类似的东西,例如Websend。
When you have to comunicate between different applications you will problably need a bridge. In your case I'd suggest to use Minecraft's RCON service (must be enabled in the confingiration) or a plugin that do something similar, like Websend.
Websend代码实际上可在上获得。 Github ,如果您想知道插件的工作方式。
Websend code is actually available on Github if you would like to know how the plugin work.
这篇关于PHP到Java的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!