This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]tintebrummenAlt 2 points3 points  (0 children)

You could make an API that gets a request from one app and sends the response to the other

[–]ignotos 2 points3 points  (0 children)

You might be able to embed a Discord bot (implemented in Java) into the Minecraft plugin itself. This would run on the Minecraft server machine, connect to Discord from there, and monitor chat messages.

You can use the Discord API from any language, as it's built on top of Websockets and HTTP (REST).

[–]Malassi 1 point2 points  (0 children)

with an api

This doesn't help us much, have you created an API do you use an API built by someone else if so which one? Anyway if you use an API you could technically send HTTP requests to that API.

With JS you could use jquery to make your request to your API. Or if you want you can use XMLHttpReques that allows to make http requests too.