Мова

EnchantLimiter

EnchantLimiter

SpigotMCModrinth

This plugin allows you to set the maximum levels for enchantments

9.5k завантажень 4.5 рейтинг
остання vEnchantLimit 2.2 SpigotMC
1.10 – 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 :)

Версії

Release
EnchantLimit 2.2
·
4.3k
Release
EnchantLimit 2.1
·
80
Release
EnchantLimit 2.0
·
989
Release
EnchantLimit 2.0
·
79
Release
EnchantLimiter 1.9
·
240
Release
EnchantLimit 1.9
·
73
Release
EnchantLimit 1.8
·
120
Release
EnchantLimit 1.7
·
119
Release
EnchantLimit 1.6
·
274
Release
EnchantLimit 1.5
·
100
Release
EnchantLimit 1.4
·
81
Release
EnchantLimit 1.3
·
115

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

Завантажити EnchantLimiter

Modrinth

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.