No Break

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

PermissionDescriptionDefault
nobreak.ignoreallows the player to break and place blocksdefault: OP
nobreak.toggleallows the the player to toggle nobreakdefault: NONE

Commands

CommandDescriptionPermisison
nobreak toggletoggles nobreak on or offnobreak.toggle

Configuration

Version 1.2

KeyWhat it doesValues
enabledwhether or not nobreak is enabledtrue/false
reset on restartwhether or not to set "enabled" to "reset to" on server restarttrue/false
reset towhat to set "enabled" to on server restart if "reset on restart" is truetrue/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!


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    71919
  • Created
    Jan 4, 2014
  • Last Released File
    Jun 1, 2015
  • Total Downloads
    12,333
  • License

Categories

Members

Recent Files