Tags
Creators
Details
All versions
1.0.1
Release
MinecraftREST 1.0.12 years ago 101
Compatibility
Minecraft: Java Edition
1.20.x
Platforms
Bukkit
Paper
Spigot
Changes
MinecraftREST 1.0.1
Bug Fixes š
- Fixed an error that occurs because trying to kick a player from an asynchronous thread (the HTTP request thread) while Bukkit/Spigot requires player operations to be performed on the main server thread.
- Fixed similar thread safety issues with the gamemode change endpoint.
- Both operations now properly run on the main server thread using BukkitRunnable.
Technical Details š§
- Modified
/api/player/kickendpoint to use Bukkit's scheduler - Modified
/api/player/gamemodeendpoint to use Bukkit's scheduler - Improved error handling for async operations
- Follows the same pattern as the command execution endpoint for thread safety
Developer Notes š
- If you're using these endpoints in your code, no changes are required on your end
- The API interface and responses remain the same
- Operations may take a few milliseconds longer due to thread scheduling
Installation
- Download the
minecraft-rest-1.0.1.jarfrom this release - Place it in your server's
pluginsfolder - Start/restart your server
- Configure the plugin in
plugins/MinecraftREST/config.yml
Important Security Reminder ā ļø
Remember to change the default security settings in config.yml:
- Change the JWT secret
- Update admin credentials
- Consider using HTTPS in production
Documentation
Full documentation is available in:
- README.md in the repository
- api-docs/swagger.yaml for API specification
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:cPxGOxRw:zd4td9IR"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:cPxGOxRw:zd4td9IR"
}

