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
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!
what exactly do I have to type in the text on Minecraft or a command on my terminal
plz help.
I have tried typing nobreak.ignore with a slash in front on the server, and without on the terminal. Both are undefined
i can use bukkit take water without permission
not tested with lava
JAVA:
java version "1.8.0_74"
Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)
Server:
This server is running CraftBukkit version git-Spigot-e4d4710-e1ebe52 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
Plugin works fine but I still have error spamming in console everytime without stopping:
[12:42:20] [Server thread/ERROR]: Could not pass event BlockIgniteEvent to NoBreak v1.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:338) [JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [RegisteredListener.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492) [SimplePluginManager.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callBlockIgniteEvent(CraftEventFactory.java:859) [CraftEventFactory.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] at net.minecraft.block.BlockStaticLiquid.func_149674_a(BlockStaticLiquid.java:68) [ant.class:?] at net.minecraft.world.WorldServer.func_147456_g(WorldServer.java:562) [mt.class:?] at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:276) [mt.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:920) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:423) [lt.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:798) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:658) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.7.0_71] Caused by: java.lang.NullPointerException at com.jojodmo2010.nobreak.BreakListener.onIgnite(BreakListener.java:109) [?:?] at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_71] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_71] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:334) [JavaPluginLoader$1.class:git-Cauldron-MCPC-Plus-1.7.10-1.1207.01.191] ... 12 more
also is buggy because I get sometimes stucked in the block or even go through...
Can you please make it so you can disable the message and can toggle noplace aswell?
thanks this will be a great trick for my server
hey everyone
You should add an option to change it between worlds e.g.:
plotworld: Allowed to break blocks survival: Not allowed to break blocks
:) Nice plugin though!
I'm very happy I found this plugin it's funny though because I was looking for a plugin exactly like this so I searched up Nobreak because usually good plugins to stop something starts with no so I was like nobreak sounds like a plugin name so I searched it and here I am. Thanks!
@Ifacro
It's Global at the moment
The command is global or can I toggle nobreak for different worlds separately?
@Jojodmo2010 man i think you for this! It does all i need it to do no more or no less . Thanx man I hope this stays updated .
@crunkazcanbe
Just got approved
@Jojodmo2010 When do you think this plugin is going to be avalible . An eta
@Scarletomato
Good idea, I'll try to add this in the next update
could you have a command that can toggle the plugin while the server is running? I'd like to be able to set up a game world (cluster chunk for instance) and not have any players break the world while we're waiting for everyone to get set up. But then as soon as the game starts, i can re-enable breaking and building for all players.
@lamontjjmovies
We just have to wait until the bukkit dev staff approves it first
@DevP0820
Yet is WorldGuard lightweight?
I would love to try this. Instead of Modifyworld plugin.
This is what WorldGaurd has been doing for a long time.
were is the download button