A comprehensive Minecraft Spigot plugin built with Gradle, featuring essential server commands and utilities for enhanced gameplay.
- Essential Commands: Collection of useful server commands for players and administrators
- Player Utilities: Health, hunger, and teleportation management
- Server Broadcasting: Send messages to all online players
- Random Teleportation: Multiple distance options for player teleportation
- Spigot 1.19.4 Compatibility: Built for modern Minecraft servers
- /killself: Instantly kills the player who executes the command
- /heal: Fully restores the player's health to maximum
- /feed: Replenishes the player's hunger bar completely
- /broadcast (message): Sends a custom message to every player on the server
- /rtp (near/mid/far): Randomly teleport the player to desired destination
- Framework: Spigot API 1.19.4
- Language: Java 17
- Build Tool: Gradle
- Dependencies: Lombok, Spigot API
- IDE: IntelliJ IDEA / Eclipse
- Java 17 or later
- Minecraft Server with Spigot 1.19.4
- Gradle 7.0 or later (for development)
-
Clone the repository:
git clone https://github.com/AdamTroyan/BasicPlugin.git
-
Navigate to the project directory:
cd BasicPlugin -
Build the plugin:
./gradlew build
-
Find the compiled JAR in
build/libs/
- Copy the generated JAR file to your server's
pluginsfolder - Restart your Minecraft server
- Check the console for successful plugin loading
- Commands are now available to players with appropriate permissions
- Open the project in your preferred IDE
- Modify the plugin code in
src/main/java/ - Add resources in
src/main/resources/ - Build and test on your development server
BasicPlugin/
├── build.gradle # Build configuration and dependencies
├── gradle.properties # Gradle project properties
├── settings.gradle # Gradle settings
├── gradlew # Gradle wrapper (Unix)
├── gradlew.bat # Gradle wrapper (Windows)
├── gradle/wrapper/ # Gradle wrapper files
├── src/
│ ├── main/
│ │ ├── java/ # Java source files
│ │ └── resources/ # Plugin resources (plugin.yml, etc.)
│ └── test/ # Unit tests
└── build/ # Compiled output
Edit build.gradle to:
- Update plugin version
- Add new dependencies
- Modify Java version
- Configure build tasks
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Adam Troyan - GitHub Profile
Built with ❤️ for the Minecraft community
This code serves as a solid foundation for building more complex plugins. You can easily expand it by adding permissions, new features, and customizations to suit your server's needs.
Dive into Minecraft plugin development and enjoy creating! 🥰