Open candrawardana opened 3 years ago
Most definitely won’t run a Webserver for a REST API
no, you mistaken something,
i mean, every chat it runs, it's will call curl commands
So you want Discord integration?
actually very yes
also please add discordchat from mc to discord "disable-able" and add http post request feature in every chat it goes, instead of mysql storage, because i have custom back end web server
Well you now have asked for 3 completely different things:
When you're done piling requests on, let me know.
well yes, but rest / post is actually the same, i've change the issue's title
so when player do global chat, its run http request like
example : //HTTP REQUEST POST backend_api = "http://localhost/api/send_chat"; request = "{ 'username':%username%,'chat':%chat% }" enable = true
just like mysql do, but http request instead
Maybe this should be split into 3 different issues? Add support for Discord webhooks Add support for custom get/post request Add support for Discord → Game → Discord chat
The hook part really isn't an issue. Not worth splitting it further.
I beleive there is already an issue for native Discord support however.
this is old but i saw it and gave a similar ask on spigot (I am the HavensEdgeMC owner) and maybe there can be a sort of hook plugin that we install on each spigot server to utilize discordsrv so you dont have to make too much other than to send chat to discordsrv (kinda like the passtobackend configuration but to only discordsrv and any other chat related things you would want to include)
If you just want Discord support you can enable passToBackendServer
and install ChatFree on all backend servers.
we need so we can use rest discord intregration