EnchantLimiter EnchantLimit 2.2

This plugin allows you to set the maximum levels for enchantments

  1. BladeFireTurtle
    Tested Minecraft Versions:
    • 1.10
    [​IMG]

    This plugin allows you to set the maximum levels that an enchantment can reach when using an enchanting table or anvil.
    Every maximum enchantment level is configurable, and you are able to toggle on/off limiting anvils and enchanting tables separately.

    Upon limiting a players enchantment a message will be displayed to them telling them what the original enchantment was and what its now been limited to. (This can be turned off in the config)

    Commands:
    • /enchantlimit reload - Reloads the config file
    Permissions:
    • enchantlimit.reload - Permission to use the reload command (Default OP only command)
    • enchantlimit.superenchant - Allows the player to get enchantments set in the config that have levels that are higher than the normal vanilla maximum. (Default OP only)
    • enchantlimit.allowrepair - Enables a player to repair an item even if its enchantment level is greater than the maximum level set in the config (Default OP only)
    • enchantlimit.bypassanvil - Bypasses the anvil limits enforced by the plugin (Default OP only)
    • enchantlimit.bypasstable - Bypasses the enchantment table limits enforced by the plugin (Default OP only)
    • enchantlimit.bypasstrader- Bypasses the villager limits enforced by the plugin (Default OP only)
    • enchantlimit.alwayslucky - Makes it so a user always receives the best possible enchantment level (Not Default)
    Configuration File:
    When run for the first time this plugin should create a folder called EnchantLimit, inside there you'll find a file called config.yml
    PHP:

    #********************************************************************************************************#
    #*****************************************  EnchantLimit Settings  **************************************#

    #Should this plugin apply changes to enchantments on enchanting-tables, anvils and villager trades?
    Anvil_Limiter_Enabled: true
    Enchanting_Table_Limiter_Enabled: true
    Villager_Limiter_Enabled: true

    #Should OP's have all beneficial enchantments by default?
    Default_OP_Permissions: false


    #********************************************************************************************************#
    #*****************************************  Message Customization  **************************************#

    # What message should be displayed when an enchantment is limited at an enchantment table? (Disable message by setting to: null)
    # Note: %enc is where the enchantment type is inserted, %olv is where the original level is inserted and %nlv is where the new level is inserted.
    # Use & for colour codes, colour codes available here: http://goo.gl/4DcswV
    Message_Level_Downgraded_Table: "&5 Enchantment %enc level changed from %olv to %nlv."

    # What message should be displayed when an enchantment is limited at an anvil? (Disable message by setting to: null)
    Message_Level_Downgraded_Anvil: null

    # What message should be displayed when an enchantment is limited when trading with a villager? (Disable message by setting to: null)
    Message_Level_Downgraded_Trade: "&5 Enchantment %enc level changed from %olv to %nlv."

    # What message should be displayed when an enchantment is increased at an enchantment table? (Disable message by setting to: null)
    Message_Level_Upgraded_Table: "&5 You were lucky! Enchantment %enc level increased from %olv to %nlv."

    # What message should be displayed when an enchantment is increased at an anvil? (Disable message by setting to: null)
    Message_Level_Upgraded_Anvil: null

    # What message should be displayed when an enchantment is increased when trading with a villager? (Disable message by setting to: null)
    Message_Level_Upgraded_Trade: "&5 You were lucky! Enchantment %enc level increased from %olv to %nlv."

    # What message should be displayed when an enchantment is removed (level set to 0) at an enchantment table? (Disable message by setting to: null)
    Message_Enchantment_Removed_Table: "&5 Enchantment %enc not added!."

    # What message should be displayed when an enchantment is removed at an anvil? (Disable message by setting to: null)
    Message_Enchantment_Removed_Anvil: null

    # What message should be displayed when an enchantment is removed when trading with a villager? (Disable message by setting to: null)
    Message_Enchantment_Removed_Trade: "&5 Enchantment %enc not added!."



    #********************************************************************************************************#
    #*****************************************  Level Limit Customization  **************************************#

    #This plugin can work in two ways:

    #Firstly, you can simply use this plugin to limit the level of an enchantment to something lower than that which is normal in vanilla minecraft,
    #for example you might want to stop players from getting the best efficiency 5 enchantment so you could limit DIG_SPEED to, say, 2 - meaning that
    #any efficiency enchantment that is higher than 2 will be changed to 2 making this the new maximum efficiency enchantment level.

    #Secondly, you can use this plugin to actually increase the level of an enchantment to something higher than that which is normal in vanilla minecraft
    #For example you might want to allow certain players (they need the permission) to get an efficiency 10 enchantment which is double what
    #is normally possible in minecraft. In this case you would set DIG_SPEED to 10, the player will then have a chance of getting anywhere between
    #efficiency 5 (the vanilla amount) and efficiency 10. The chance is the likelihood of each level increase out of 100, so 50 is a 50% chance of an increase
    #for each additional level whereas 100 would be a guarantee of always increasing to the maximum possible value(in this case efficiency 10).

    #Armour Enchantments
    PROTECTION_ENVIRONMENTAL: 4
    PROTECTION_ENVIRONMENTAL_Chance: 100

    PROTECTION_FIRE: 4
    PROTECTION_FIRE_Chance: 100

    PROTECTION_FALL: 4
    PROTECTION_FALL_Chance: 100

    PROTECTION_EXPLOSIONS: 4
    PROTECTION_EXPLOSIONS_Chance: 100

    PROTECTION_PROJECTILE: 4
    PROTECTION_PROJECTILE_Chance: 100

    FROST_WALKER: 2
    FROST_WALKER_Chance: 100

    OXYGEN: 3
    OXYGEN_Chance: 100

    WATER_WORKER: 1
    WATER_WORKER_Chance: 100

    THORNS: 3
    THORNS_Chance: 100

    DEPTH_STRIDER: 3
    DEPTH_STRIDER_Chance: 100

    #Weapon Enchantments
    DAMAGE_ALL: 5
    DAMAGE_ALL_Chance: 100

    DAMAGE_UNDEAD: 5
    DAMAGE_UNDEAD_Chance: 100

    DAMAGE_ARTHROPODS: 5
    DAMAGE_ARTHROPODS_Chance: 100

    KNOCKBACK: 2
    KNOCKBACK_Chance: 100

    FIRE_ASPECT: 2
    FIRE_ASPECT_Chance: 100

    LOOT_BONUS_MOBS: 3
    LOOT_BONUS_MOBS_Chance: 100

    #Tool Enchantments
    DIG_SPEED: 5
    DIG_SPEED_Chance: 100

    SILK_TOUCH: 1
    SILK_TOUCH_Chance: 100

    LOOT_BONUS_BLOCKS: 3
    LOOT_BONUS_BLOCKS_Chance: 100

    #Bow Enchantments
    ARROW_DAMAGE: 5
    ARROW_DAMAGE_Chance: 100

    ARROW_KNOCKBACK: 2
    ARROW_KNOCKBACK_Chance: 100

    ARROW_FIRE: 1
    ARROW_FIRE_Chance: 100

    ARROW_INFINITE: 1
    ARROW_INFINITE_Chance: 100

    #Fishing Rod Enchantments
    LUCK: 3
    LUCK_Chance: 100

    LURE: 3
    LURE_Chance: 100

    #Universal Enchantments
    DURABILITY: 3
    DURABILITY_Chance: 100

    MENDING: 1
    MENDING_Chance: 100
     

    ToDo:

    • Add bypass anvil limit permission - Done!
    • Add bypass enchanting table limit permission - Done!
    • Add support for increased level maximums - Done!
    • Add optional limit checks when a player drops an item, puts armor on etc.
    • Add a chance system when increasing enchantment levels - Done!
    • Add villager item limits - Done!
    • Add repair permission - Done!
    • Make default OP permissions optional - Done!
    • I need more ideas!! Let me know if you have one! ;)
    If you have any issues with the plugin let me know in the comments.
    If you want anything else added to the plugin PM me or write it in the comments and I'll add it to the todo list.

    Please don't leave a negative review on my plugin based on any issues/bugs you've had, its hard to test for everything and it would be more helpful to everyone if you contact me and let me fix it! :)


    If I've helped you and you would like to show your appreciation, you may buy me a coffee because that's what I love.
    [​IMG]

    A big thanks to the following user(s) for the coffee's:

    • Anonymous ($1 donation)
    *PM me if you want your name put up :)

Recent Reviews

  1. Dennisxo
    Dennisxo
    2/5,
    Version: EnchantLimit 2.2
    I really like the idea of the plugin but the plugin dont limit the enchantments it reduces the levels. and the worst thing is the player see the higher tiers click on them and after that they getting noticed that the level is reduced. Please add a way that the players see the real enchantment level in the table :(
  2. MrZaros
    MrZaros
    5/5,
    Version: EnchantLimit 2.2
    Could you add an option to set the chances to get a enchant?
    like P1=10% p2=5% p3=1% p4=0.2%?
  3. PowerMentos
    PowerMentos
    1/5,
    Version: EnchantLimit 2.2
    Terrible. Breaks your anvils! DO NOT GET THIS! It doesn't even work either! The author needs to fix this!
  4. smedstugan
    smedstugan
    4/5,
    Version: EnchantLimit 2.2
    Sorry for my bad spelling...........................................................................
  5. hary
    hary
    5/5,
    Version: EnchantLimit 2.2
    Would +1 this plugin, it works and is very light weight. great work. compatible paper spigot as well.
  6. chrissquid123
    chrissquid123
    4/5,
    Version: EnchantLimit 2.2
    Really Good Plugin. I just have a suggestion. Maybey you can make it so we can make different tiers in the config with different permissions so maybey better ranks can get higher level enchants. Or if not that there could be a permission where lets say its enchantlimit.superenchant.2x which would multiply there chance to get better enchants by 2
  7. pinkpig
    pinkpig
    5/5,
    Version: EnchantLimit 2.2
    Great plugin! I just got it on my 1.10 server and really look forward to seeing what my players think. Other servers I've seen have used similar stuff but I personally find this plugin to be much better than what those other servers were using. Thanks for putting time and effort into making this awesome plugin!
  8. kuttor
    kuttor
    5/5,
    Version: EnchantLimit 2.2
    I have bug when using anviI. We can't rename all item please help me fix it I need to disable frost walker from my server :] .. but this is very best Plugins
  9. erozabesu
    erozabesu
    5/5,
    Version: EnchantLimit 2.2
    I have got a problem with anvil.
    Set the value "Anvil_Limiter_Enabled" to true in config,
    we can't rename all items with anvil.
    Sorry for my poor english.
  10. HockeyMonstertx
    HockeyMonstertx
    5/5,
    Version: EnchantLimit 2.2
    I have a problem with this plugin 1 the anvils only go to four i need help message me please and its good for now i just need help with anvils