Level Requirements
Plugin based on a Plugin Request: http://forums.bukkit.org/threads/equipment-level-requirement.308514/#post-2783918
Level Requirement
What you can do:
- Add a Level Requirement to your Plugin. If you don't have the required Level you can't use ist.
- Change the Requirement for every Minecraft Item (Items by Plugins modified includet) to every Level you want
- Configure how hard the Plugin decides whether you can use it (more information below)
Commands
There is only one command to add items to the config which makes it much easier. Usage: /lvlrq add <level> the item in your hand will added to the config with the specified level (Note: You have to be OP to use that command)
Configuration
In the config are 4 things to configure:
- enableInventoryCheck: Set this to true if you want that you can't put the item to an another Slot in your inventory if your level isn't high enough.
- enableDamageCheck: Set this to true if you want that you can't hit an entity with the item if your level isn't high enough.
- enableInteractCheck: Set this to true if you want that it is impossible to do left- or right-Clicks
- enableMoveInventory: If true the item get moved to the next free Slot if your level isn't high enough.
Note: If an item has an Level Requirement is decided whether is defined by its "type" and not one special item.
hello can u pls fix this? im using the LevelRquirement-1.8R1.0-1.3 both CB 1.7.9-R0.2, every time i open my inventory and click outside of the inventory it will spam my console. if enableInventoryCheck set to true. if i turn it false they can bypass the items by pointing the mouse to the item and right click the item on the inventory
[01:33:40] [Server thread/ERROR]: Could not pass event InventoryClickEvent to LevelRequirement v1.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:338) [JavaPluginLoader$1.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [RegisteredListener.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) [SimplePluginManager.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492) [SimplePluginManager.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] at net.minecraft.network.NetHandlerPlayServer.func_147351_a(NetHandlerPlayServer.java:2015) [nh.class:?] at net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(SourceFile:32) [ix.class:?] at net.minecraft.network.play.client.C0EPacketClickWindow.func_148833_a(SourceFile:10) [ix.class:?] at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244) [ej.class:?] at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173) [nc.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:980) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:430) [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_72] Caused by: java.lang.NullPointerException at de.manimax3.lvlrequirement.listener.InventoryClick.onInvClick(InventoryClick.java:32) [?:?] at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_72] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_72] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:334) [JavaPluginLoader$1.class:git-Cauldron-Reloaded-1.7.10-1.1388.1.0] ... 13
actually my players need one lvl more of the lvl set, can you fix it?
You should edit this plugin. the problem is: if i set level requirement for an enchanted iron_sword to level 10, all iron_sword will require level 10 too. can you check item by code just like: iron_sword#3 or iron_sword#a, i want my user can use another item normaly but items i add level requirement.
@manimax3 just wonder if its possible to change the vanilla exp to other value´s. from 17 to 100 or something like that. and id love to see te lore support becuz, i guess everyone use them anyway.
@Shnitzalcraft
It uses the vannilla exp. The items are defined by the material. Maybe i will add that the items are definded by the lore directly.
how do you level up? is it just vanilla minecraft exp? nvm checked the request (you should add it in anyway) also, are the items defined by uuid, name or id.
I would recommend doing name if any.