What is no Break? No Break is an extremely easy to use, extremely lightweight plugin that disables block breaking and placing for players without a permission.
Intro
Ever wanted to disable block placing/breaking without the hassle of having a huge plugin where you have to configure everything? Hate it how players you don't trust can grief to their hearts content? Then No Break is the plugin for you! No Break is great for hub servers, because super lightweight, using the least amount of code possible, doesn't interfere with the gameplay, and it's extremely simple to install and use! No Break is also great for new players on your server, so you can make sure that you trust them before you allow them to build!
Installation
- Download No Break
- Stop your server
- Drag the .jar file to your plugins folder in your server
- Restart your server Your done! If you want someone being able to break blocks, simply give them the permission nobreak.ignore
Features
- Extremely lightweight
- Permission support
- No advanced configuring to do
Permissions
Permission | Description | Default |
---|---|---|
nobreak.ignore | allows the player to break and place blocks | default: OP |
nobreak.toggle | allows the the player to toggle nobreak | default: NONE |
Commands
Command | Description | Permisison |
---|---|---|
nobreak toggle | toggles nobreak on or off | nobreak.toggle |
Configuration
Version 1.2
Key | What it does | Values |
---|---|---|
enabled | whether or not nobreak is enabled | true/false |
reset on restart | whether or not to set "enabled" to "reset to" on server restart | true/false |
reset to | what to set "enabled" to on server restart if "reset on restart" is true | true/false |
Version 1.0 and 1.1
None needed!
Beta Builds
If you would like the most recent beta build, you could get it HERE
API for Developers
PlayerBlockEditEvent will be called whenever a player breaks, places, ignites, or for any other reason changes a block:
@EventHandler public void onPlayerBlockEdit(PlayerBlockEditEvent event){ Player player = event.getPlayer(); Location location = event.getLocation(); player.sendMessage("You just changed the block at " + location); }
PlayerBlockEditEvent can be cancelled, which will undo whatever the player did
Feature Suggestion
If you have any suggestions for No Break, don't hesitate to post them in the comments!