The Minecraft Plugin Compiler is a tool designed to compile Minecraft plugins from a specified GitHub repository or local source files into a Java JAR file. This project simplifies plugin development and deployment for Minecraft server administrators and developers.
- Compile Minecraft plugins from GitHub links or local directories.
- Automatically generates JAR files in the
Jarsfolder, ready for deployment. - Error handling and logging for a smooth user experience.
- Java Development Kit (JDK) 8 or higher
- Gradle 6.0 or higher (or use the included Gradle wrapper)
- Internet connection (for fetching GitHub repositories)
gitinstalled on your system
-
Clone the repository:
git clone <repository-url> cd Minecraft-Plugin-Compiler
-
Before building or running the project, create a
.envfile in the project root and add the GitHub link of the plugin you want to compile:GITHUB_LINK=https://github.com/yourusername/your-minecraft-pluginReplace the value with the actual GitHub repository link you want to compile.
-
Build the project using Gradle:
./gradlew build
To compile a Minecraft plugin from a GitHub link or local path, run:
java -cp build/classes/java/main com.example.CompilerApp <github-link-or-local-path>Example:
java -cp build/classes/java/main com.example.CompilerApp "https://github.com/PlayPro/CoreProtect"- The compiled JAR will be placed in the
Jarsfolder in your project root.
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License.