PlayerRules
PlayerRules plugin help you blacklist items and blocks what you don't want player are allowed to use.
Plugin also support now multi worlds, so now you can set different rules different worlds.
You can blacklist as many items and blocks you want.
If someone want continue this project, then go a head. (post in this thread your link) You found plugin source from my Github.
Where i can use this plugin?
Example. If you have minigame or hunger games -world, you can easily disable all block breaking OR disallow items/blocks from normal world.
Features
- Easy to setup and use.
- Global and single world blocks and items blacklist.
- Can disallow single or multi, blocks place/break.
- Can disallow single or multi, items or blocks drop in.
- Can disallow single or multi, items using.
- Can blacklist all blocks and items with one line -> - all
- Warning system.
- Permissions.
Config
HINT: You never need reload all plugins when you edit config file, because every time when player drop, place or break its just check id from list.
Global
Use block/item id, you can see all id here: http://minecraftinfo.com/idlist.htm
When want add block/item blacklist, make new line and start it - THEN id example: - 1
Global: # Global disallow blocks/items. Break: - 7 - 0 Place: - 7 - 0 Drop: - 7 - 0 Use: - 259 - 328
World
You can set as many worlds you want where is different disallow drop, use, break and place rules.
World: # Single world disallow blocks/items. world_nether: # <- World name here Break: - 7 - 0 Place: - 1 - 0 Drop: - 7 - 0 Use: - 259 - 328
Warning
This feature help keep spammer away, who try over flood server for placing same block over and over.
I personally recommend keep this feature always enable ;)
Warning: # Enable/disable warning system. (true = Enable || false = Disable) WarnEnable: true # Get this message when try break/use/place/drop no allowed item/block. ( %WARNSTATUS = Display how much warn player already have. || %MAXWARN = Display what is max warn before kick. ) Message: "§4§lWARNING: §cSTOP SPAMMING, NOW! §4§l( %WARNSTATUS / %MAXWARN )" # How many time need break/use/place/drop, before plugin give warn. XWarn: 8 # Max warn before kick. (Use 1 OR 0 if want "insta" kick) MaxWarn: 3
Messages
You can customize messages when player are not allow place or break or drop the block/item.
If you don't want display NoAllow message to player all the time, then change true to false (from Display:)
Messages: # true = Display message when not allow. || false = No display message when not allow. Display: true # true = Display "[PlayerRules]" prefix. || false = No display "[PlayerRules]" prefix. Prefix: true # %NAME = Block or Item name. NoAllowBreak: "§cYou are not allow break§4 %NAME §cblock!" NoAllowPlace: "§cYou are not allow place§4 %NAME §cblock!" NoAllowDrop: "§cYou are not allow drop§4 %NAME §cblock/item!" NoAllowUse: "§cYou are not allow use§4 %NAME §cblock/item!"
MCStats / Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Permissions
Permission | Description | Default |
---|---|---|
pr.bypass.* | Bypass all. | Op |
pr.bypass.drop | Bypass drop blacklist. | Op |
pr.bypass.place | Bypass place blacklist. | Op |
pr.bypass.break | Bypass break blacklist. | Op |
pr.bypass.use | Bypass use blacklist. | Op |
Todo list
- Anti Enchant (Cant enchant item if it's in blacklist)
- Anti Craft (Cant craft item or block if it's in blacklist)
- Anti Potions
Anti Use (Cant use item if it's in blacklist. example flint and steel, minecart or hopper)Each world have own rules (You can set where world block/item is allowed/disallowed)- Any suggestions?
Known bugs
- Can't disallow minecarts.
- I don't add enchant and craft disallow feature yet, because there is duplicate glitch. What i try fix.
If you find any bug please report it to the author
@harryjamesuk
Nice idea :) > Added to todo list
@signition
What mod items?
@kjly
Yes, its can disable spawner eggs. But you cant disable just once egg.
Does it support mod itmes?
An anti-potion option would be much appreciated for things like Invisibility Potions!
does this work for blocking out the placement of spawners such as skeleton spawners?
@harryjamesuk
I'm glad to hear that ^_^ Thank you too!
@exel80
I've been searching everywhere for a plugin that will block certain blocks on certain worlds so thank you so much (Seriously...) for this plugin!
Coming BETA 1.1 version changelog:
More update coming :)
@squazzypt
Added source code to Github. Now can do it by your self ;)
@exe80 please do :P Im also needing.
@wardzinc
Nope, it doesn't work in 1.5.2 because i build it to 1.6.2
But i can "downgrade" it ;)
OMG cannot wait! I hope it works for 1.5.2!! Please tell me it does :P
@legomankyle
Well beta version is out, now just wait bukkit team for approve it ;)
@exel80
I would personally like to see this released
Really easy plugin and I think you can do same thing with world guard, but if you still want i release this then let me know ;)
P.S: This is answer for darkgod153 user. http://forums.bukkit.org/threads/anti-drop.170106/