LevelRestrictions
LevelRestrictions is a simple, configurable rule based system for adding restricting the use of items for common actions according to the Players level.
NOTE: I have totally rewritten this plugin from scratch and created a new plugin that does all this and wayyyy more. Click here for the ItemRules plugin.
Latest Build - (awaiting approval)
LevelRestrictions adds a new layer of fun to your server by allowing you to configure groups of custom rules that apply to the players XP level and/or the Faction they belong to.
Some examples:
- Restrict people from only using wooden or stone swords until they hit a level
- Stop players using any specific block or item ( like TNT or even a crafting bench!)
- Prevent users from using iron weapons after a certain level
- Prevent your "Red" faction from using Iron weapons, but give them access to iron armor. Give your "blue" faction access to iron armor, but not iron weapons! See Faction support here.
Config
Example that restricts the Player from using any stone tools or weapons until level 2:
stoneToolsAndWeapons: description: use Stone tools and weapons minLevel: 2 actions: - use - craft - pickup items: - 1 - 4 - 67 - 98 - 109 - 291 - 272 - 273 - 274 - 275
Permissions:
levelrestrictions.rules.bypass.RULENAME
Will prevent rule from being applied to Player
Commands:
command | options | description |
---|---|---|
/can | [all,current,previous,next] | will show the rules the Player is eligable for |
/cant | [all,current,previous,next] | shows rules the Player is not eligable for |
/full | [all] | shows rules Player is and is not eligable for. |
nJoy
Is it possible for you to make this work by rank instead of level? If yes would you please?
@krone6
I've written this to be easily extendable so it shouldn't be hard to implement as a feature. I'll add it to my todo and see what I can come up with over the next week.
For saving levels http://dev.bukkit.org/server-mods/scavenger/ can be also used.
@Geekola
Thanks for the help. I would use that other plugin, but I also want people to delevel too. If you do add in an option in the config to keep any permission gained once the level is reached then I'll download this plugin.
Overall, very good idea. I'll check in on this update when I see it on the recently updated to see what new things were added. Hopefully this doesn't deter others from not trying it out for their own use.
@krone6
Nope. To me, that was part of the fun. Is that what you were after?
Just a question before I download this. If someone reaches level 2 and then dies, resulting in them going back to 0, do they keep any permission they gained when they were at 2?
@Zilacon
BTW, just looked up the mod and I can't for the life of me see how you are saying I ripped it off. Its decent, but this is more complex and much more configurable. With this mod, you set up rules (like groups) and apply them to levels (or in next update optionally factions) instead of setting levels against a pre-set item list.
Regardless, use the mod that ticks your boxes. Would be a lame world if we only ever needed a "one size fits all" mod.
/nJoy
@Zilacon
er... I don't even know what mod that is? This does a hell of a lot more than just armor. You can control any item in game based on their level. Just polishing up an optional Factions integration too. But thanks for the feedback :-|
Nice rip off of ArmorControl