HomeJavaModsNoBreak
NoBreak
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
Features
Permissions
Permission Description Default
nobreak.ignore — allows the player to break and place blocks — default: OP
nobreak.interact — allows the player to interact with blocks like doors and buttons — default: OP
nobreak.toggle — allows the the player to toggle nobreak — default: NONE

Commands
/nobreak toggle — toggles nobreak on or off — nobreak.toggle
/nobreak status — tells you whether or not nobreak is on — nobreak.toggle

Configuration
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

enable messages — whether or not players should be sent messages when they don't have permission to do something — true/false

API for Developers
PlayerBlockEditEvent will be called whenever a player breaks, places, ignites, or for any other reason changes a block:

Code (Java):
   @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 Suggestions
If you have any suggestions for No Break, don't hesitate to post them in the comments!

Donations
Any and all donations are appreciated! They help me bring updates to No Break.

[​IMG]

My Other Resources
[​IMG]
[​IMG]

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

NoBreak is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 4,076 times (via Spigot). Download it and open it directly in the game.

Explore more