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
@Geekola Hi!
I have a questions... i don't understand how i can pass the level.. form example, i join for the first time a server, i'm level one. How i can pass to level 2?
Thanks in advance! :D
@y1985
You will need to remove LevelRules. ItemRules covers all the same features and a whole hellova lot more. The only thing itemRules doesn't do that this does right now is allow you to do some rule editing inline and give the "next level you can...." text to players. This is only because the rules in ItemRules are potentially more complex and thus much harder to determine what can apply should a user change their xp level, faction, mcmmo skill, etc... Now, you just need to communicate in the rule description when the rule will no longer apply (e.g. 'use iron swords (until level 2)')
@Geekola
Thanks, link is working now. Do I need to remove Levelrestrictions? and Does Itemrules cover features in Levelrestrictions?
@y1985
My bad, try the link again.
@Geekola
Where to download the file. I click at the latest build and it said 404 not found.
@y1985
Try again, they removed it until I changed the categories which I just did. Still pending approval, but should be able to access it now
Got 403 Forbidden page.
@y1985
The formats aren't radically different so conversion is pretty easy, but it would be manual.
@Geekola
Is there a way to convert configuration? I got a lot of rules. I will definitely try this.
@y1985
Beta of new system (total rewrite of this) is here: ItemRules Note you will need to remove LevelRestrictions and reconfigure ItemRules (will try to get more details on configuring new plugin shortly).
HTH's
@Geekola
Wow! that really awesome, waiting for update. :D Thanks a lot, Geekola
I forgot to mention you, Bow restriction does not work. I can still shoot some arrow
@y1985
Am just finishing up a total rewrite and expansion of this mod and am just prepping it up for release (hopefully today). The restrictions on using crafting and furnaces are working in the new version and have just added support to restrict wearing armor. So that should sort you out!
@Geekola
Yeah I tried restricting Item ID. Here is config that I try
Also, how to restrict wearing armor? I restrict Item ID but only craft and swing the armor piece is restricted. I can still wear it.
@y1985
Have you tried restricting the itemids and it doesn't work? I was pretty sure that it did restrict, but I cant test at the moment.
Can you make interact block such as furnace, anvil, enchant table would require level before right click and use?
e.g. to use(by right click furnace) furnace you need to be level 5
Totally. Out of town till Tuesday, then ill wind up new release so any suggestions get out now so I can try to fold it in
are you still doing changes?
by permission group would be best so it can be used with a rank system. but i do see the work arounds now that you mentioned. and i use group manager and exp level for auto ranking. i can just set the min level in the config differently than min level 1 min or level 2 etc. just make it for level 15 or level 30etc... correct?
BTW, brand new revisioning of this baby coming out when I get back from a trip next week. Does all of this, but a lot more. Any suggestions and recommends, get them in now so I can try to fold them into the new project.
So far natively supports groups (via Vault), mcMMO, Factions, custom permissions, a built in Area trigger and an API for external plugins to apply/remove rules.
@Mavhill
Sure. Are these just permission groups or a separate plugin for your ranks? Techincally this can already do the former by simply adding levelRestrictions.bypass.RULENAME to the groups permissions to make them exempt from the rule.
Let me know either way. Am in middle of a complete rewrite that radically enhances functionality so can fold in most things you would need right now.