Skip to content

EnchantmentLimit, allows server administrators to set limits on the maximum levels of enchantments that can be applied to items. It ensures that players cannot exceed these limits through various means such as enchanting tables, anvils, and item pickups.

Notifications You must be signed in to change notification settings

Lythrilla/EnchantmentLimit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

EnchantmentLimit Plugin 🎉

Welcome to the EnchantmentLimit plugin! This plugin allows you to set limits on enchantment levels for items in Minecraft. It also provides commands to bypass these limits for specific items.

Features ✨

  • Enchantment Level Limits: Set maximum levels for different enchantments.
  • Bypass Command: Allow players to bypass enchantment limits for specific items.
  • Localization: Customizable messages for different events.
  • Event Handling: Monitors various events to enforce enchantment limits.

Commands 📜

  • /enchantmentlimit reload - Reload the plugin configuration.
  • /enchantmentlimit bypass - Toggle bypass mode for the item in your main hand.

Permissions 🔑

  • enchantmentlimit.reload - Permission to reload the plugin configuration.
  • enchantmentlimit.bypass - Permission to bypass enchantment limits.

Installation 📦

  1. Download the plugin jar file.
  2. Place the jar file in your server's plugins directory.
  3. Start or restart your server.

Configuration ⚙️

The plugin generates a default configuration file on first run. You can edit this file to set custom enchantment limits and messages.

# Example configuration
enchantments:
  minecraft:sharpness: 5
  minecraft:protection: 4
  # Following omission
messages:
  limitExceeded: "&cYou have exceeded the enchantment limit!"
  configReloaded: "&aEnchantmentLimit configuration reloaded."
  noPermission: "&cYou do not have permission to execute this command."
  bypassEnabled: "&aBypass enabled for this item."
  bypassDisabled: "&cBypass disabled for this item."
settings:
  enableMessages: true

Events 📅

The plugin listens to various events to enforce enchantment limits:

  • EnchantItemEvent
  • PrepareAnvilEvent
  • InventoryClickEvent
  • InventoryDragEvent
  • InventoryMoveItemEvent
  • InventoryOpenEvent
  • InventoryCloseEvent
  • PlayerInteractEvent
  • EntityPickupItemEvent
  • InventoryPickupItemEvent

Join Our Community 💬

If you have any questions or need support, feel free to join our community!

Join our QQGroup

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.

About

EnchantmentLimit, allows server administrators to set limits on the maximum levels of enchantments that can be applied to items. It ensures that players cannot exceed these limits through various means such as enchanting tables, anvils, and item pickups.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages