Limits
1.1.5You want to limit some blocks in your region, plot or island for players? Now you can!

Have you ever wanted to limit block placement?
Did you want that your players can place only 1 beacon in their..
..Region?
..Plot?
..Island?
This is possible now!
- Limit blocks per regions (WorldGuard)
- Limit blocks per islands (ASkyBlock, AcidIsland)
- Limit blocks per plots (PlotSquared, PlotMe)
- Limit blocks per worlds
- Limit blocks per player permission groups
- Have multiple limits for the same block with different data (durability)
- Might even work on the modded servers! You'll be able to limit your mechanisms.
- Counts WorldEdit actions as a normal block break/place - will count them too!
Default configuration below.
config.yml
# And here the configuration begins.
PluginEnabled: true
# I'm pretty sure you don't want this thing to be enabled. Default: false
debug: false
# Plugin language. You can use your own by creating another file. Default: en
lang: en
# Plugin hook section
Hooks:
# Should niLimits also hook into PlotSquared if detected? Default: true
PlotSquared: true
# Should niLimits also hook into PlotMe if detected? Default: true
PlotMe: true
# Should niLimits also hook into ASkyBlock if detected? Default: true
ASkyBlock: true
# Should niLimits also hook into AcidIsland if detected? Default: true
AcidIsland: true
# Should plugin try to cancel WorldEdit actions that go over the limit? May be laggy. VERY LAGGY. Default: false
TryCancelWorldEditActions: false
# Advanced block breaking check. Not required for vanilla, required for modded servers with wrenches. Default: false
AdvancedBreakCheck: false
# List of item names, which plugin will check with it's advanced alghorythm. (If item has these words in it's material name) Default: ['WRENCH','TOOL']
AdvancedBreakItems:
- 'WRENCH'
- 'TOOL'
# Limits section.
Limits:
# Technical, section name. Value is not important, but avoid same names.
BEDROCK:
# Block Material name to count.
NAME: 'BEDROCK'
# Block data/durability. For example, LOG:1 data would be 1. Set to -1 for counting all blocks with the same name. For example: LOG.
DATA: -1
# Worlds plugin is going to count this block in. Use 'all' for all worlds.
WORLDS:
- 'all'
LIMITS:
# Limits for permission groups. Requires Vault for groups, otherwise will always use default value.
default: 5
vip: 50
# Block Material names to count. If you set limit at the section above, but didn't set it below, it wont work. Automatically updates when adding limits via command.
Tocount:
- 'BEDROCK'Command list

Permissions:
There is also a custom permission for each limited item.
For Example:
If you want to give someone permission to override limits for SPONGE with DATA 1 (Wet sponge),
it will be 'nilimits.override.SPONGE:1' because of its name SPONGE and DATA 1.
nilimits.add:
description: Allows the player to add counted items.
default: OP
nilimits.view:
description: Allows the player to view counted items.
default: true
nilimits.info:
description: Allows the player to view region limits.
default: true
nilimits.override.*:
description: Allows the player to override plugin limits.
default: OP
nilimits.reload:
description: Allows the player to reload the plugin.
default: OP
Screenshots:
Screenshots
Adding block in the hand to a config with a command.

That's how your chat looks after placing some limited items in the region.

And that's how chat looks after breaking them.

And that's what happens if you exceed block limit.

But with permission nilimits.override.* you can override limits, as an admin.

See limited blocks with /nl view command.

Uou can use command /nl info inside a region-typed area (island, plot, region etc.) to see GUI like this:

Also you can use Blaze Rod to see limit info of the block clicked.
For example, if you click bedrock in a Island area it will show you this:

Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta