A Minecraft plugin that adds a random block distribution system.
- Random block distribution to players.
- Color-changing BossBar that shows the countdown for the next block.
- Configurable welcome message and block interval.
- Clone the repository or download the source code.
- Compile the plugin using Maven or Gradle.
- Place the compiled
.jar
file in your Minecraft server'splugins
folder. - Start your server to generate the default configuration files.
- Configure the plugin by editing the
config.yml
file located in theplugins/OneBlockPlugin
folder.
settings.welcome_message
: The message sent to players when they join the server.settings.block_interval
: The interval (in seconds) between each random block distribution.settings.random_block_message
: The message sent to all players when someone receives a random block. Use{player}
and{block}
placeholders.
Example config.yml
file:
settings:
welcome_message: "Welcome to the server!"
block_interval: 60
random_block_message: "{player} received a {block}!"
/startblocks
: Starts the random block distribution./stopblocks
: Stops the random block distribution.
oneblock.receive
: Allows the player to receive random blocks.
- Start the server.
- Join the server and use the
/startblocks
command to begin the random block distribution. - Use the
/stopblocks
command to stop the distribution. - Players with the
oneblock.receive
permission will receive random blocks at the configured interval.
This project is licensed under the MIT License.