Sueta

WebBridge

1.1

Allows you to host an intigrated webpage in your minecraft server.

·Plugin

⚠️ONLY WINDOWS IS SUPPORTED⚠️

WebBridge v.1.0
This plugin allows you to host an intigrated webpage in your minecraft server
with multiple web views, Rate Limiting, an intigrated API and a 404 Page view.

Node.JS will be automatically installed on your PC once the plugin
loads. If this doesn't work you can download Node.JS here:
https://nodejs.org/en/

Sometimes the plugin will repeatedly sends errors to the server console,
to fix that reload the server.

API:
You can access the API by typing <%= server-info.players.online %> in your EJS file or by pinging http://127.0.0.1:8080/webserver-api

The API will look like this:
api_json.png

Configurations:
/webbridge pages set <page view> <filename in /views/ without .ejs ending>

Page views:
SLASH => http://127.0.0.1:8080/
PAGE_NOT_FOUND => http://127.0.0.1:8080/404-page-view
TOO_MANY_REQUESTS => http://127.0.0.1:8080/429-page-view
Sets the file to render for the specified Page View, enter the filename without the .ejs ending.

/webbridge port set <intenger>
Sets the port for your webpage, you can use any port except the for your Minecraft Server.

Rate Limiting:

/webbridge limit <enable, disable>
Enables or disables the Rate Limiting for the webserver.
Disabling the rate limit gives every visitor the chance to DDos the webserver!

/webbridge limit max set <intenger>
Sets the amount of requests before the webserver starts to block the visitors ip adress.

/webbridge limit timeout set <intenger ms>
Sets the timeout that reallows the user to ping the webserver again.

To see the current value for a config leave the set argument.
The configuration can also set in the config.yml file, or by typing /webbridge as command from your server console or Minecraft Client.

Similar projects

Plugin →