ModsJava
HttpHeartBeat
Send periodic HTTP requests!. Free Minecraft Java mod for 1.8, 1.9, 1.10.
⬇ Download on SpigotHighlights
Commands:
Commands work in the console or in the game. Using the console allows you to bypass the in-game character limit.
/http list - lists the scheduled HTTP requests
List the scheduled HTTP requests
/http add <name> <seconds-per> <method> <url>
Schedule a new repeating HTTP request
name: What you want to name it. It may not contain spaces.
seconds-per: The amount of seconds per request. For minutes, multiply it by 60 to get seconds.
method: The HTTP REST method to use, including GET, POST, HEAD, OPTIONS, PUT, DELETE, and TRACE, but GET or POST will likely be what you need.
url: the URL to connect to. At a minimum it should contain the protocol (http or https) and the address. For example, to connect to the local computer on port 8080, it would be http://localhost:8080
/http setretries <name> <num retries> <seconds per retry>
Allows it to retry requests if it fails.
name: The name of the existing scheduled request
num retries: The number of times it should retry.
seconds per retry: The seconds between retries.
Note: The total time of all retries must be less than the seconds set per http request.
Note: Once retries fail or succeed, the standard ping schedule will resume.
/http delete <name>
Delete/Cancel a scheduled HTTP request
Config:
I would recommend using the commands, since they validate the input, and since YAML is easy to break (Don't use tabs!).
The format of the config is there is a main section called "requests", and in that are all of the sections, each named as the name of the request. Each request contains the method, the address, and the period in seconds.
Example:
If you have any problems, or have any feedback or feature requests, leave a message in the discussion.
If you like the plugin, feel free to leave a 5-star review
- Allows the creation of heartbeats for uptime monitoring or anything that needs periodic HTTP requests
- Allows any HTTP request type supported by Java (GET, PUT, etc.) over HTTP or HTTPS
- Does not use any version-specific code. Runs native 1.13 but runs on basically any version of Bukkit/Spigot/Paper
- Runs asynchronously so the server doesn't lag
- A simple command interface is included for ease of use
Commands:
Commands work in the console or in the game. Using the console allows you to bypass the in-game character limit.
/http list - lists the scheduled HTTP requests
List the scheduled HTTP requests
/http add <name> <seconds-per> <method> <url>
Schedule a new repeating HTTP request
name: What you want to name it. It may not contain spaces.
seconds-per: The amount of seconds per request. For minutes, multiply it by 60 to get seconds.
method: The HTTP REST method to use, including GET, POST, HEAD, OPTIONS, PUT, DELETE, and TRACE, but GET or POST will likely be what you need.
url: the URL to connect to. At a minimum it should contain the protocol (http or https) and the address. For example, to connect to the local computer on port 8080, it would be http://localhost:8080
/http setretries <name> <num retries> <seconds per retry>
Allows it to retry requests if it fails.
name: The name of the existing scheduled request
num retries: The number of times it should retry.
seconds per retry: The seconds between retries.
Note: The total time of all retries must be less than the seconds set per http request.
Note: Once retries fail or succeed, the standard ping schedule will resume.
/http delete <name>
Delete/Cancel a scheduled HTTP request
Config:
I would recommend using the commands, since they validate the input, and since YAML is easy to break (Don't use tabs!).
The format of the config is there is a main section called "requests", and in that are all of the sections, each named as the name of the request. Each request contains the method, the address, and the period in seconds.
Example:
Code (YAML):
requests:
test:
seconds : 10
method : GET
URL : http://localhost:8080
test2:
seconds : 100
method : GET
URL : http://localhost:8080
seconds_per_retry : 5
num_retries : 3
test:
seconds : 10
method : GET
URL : http://localhost:8080
test2:
seconds : 100
method : GET
URL : http://localhost:8080
seconds_per_retry : 5
num_retries : 3
If you like the plugin, feel free to leave a 5-star review

HttpHeartBeat is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 225 times (via Spigot). Download it and open it directly in the game.