Example Configs

Everything protected for everyone, everywhere

This is the default config. No special config needed, but copied below FYI

Message on making unbreakable: true
Message on enchant cancel: true
Message on enchant: false

Also repair: true

Anvil enchant delay sec: 5
Anvil enchant cost: 8

# Not set, so defaults to ALL
# Enchanting worldlist:
# - world

# Lore unbreakable string: Unbreakable

Protect armor: true
Protect tools: true
Protect weapons: true
#
# Following only effective if one or more of above three set true
#

# Auto fix worldlist:
# - world

# No permissions check if this turned on
Unbreakable on spawn: false
# Permissions checked for these three
Unbreakable on pickup: false
# Only effective for tools and weapons, may not catch armor
Unbreakable on hold: false
# Checks entire player inventory
Unbreakable on join: false
# remove Unbreakable when entering world not in 'Auto fix worldlist', if it's been set
Breakable on leave world: false

Only Enchanting and Lore-based protections

Nothing automatically Unbreakable, only what players enchant or for specially tagged (by lore) items, in all worlds. Only values different from default are listed below.

Also repair: false

Lore unbreakable string: Unbreakable

Protect armor: false
Protect tools: false
Protect weapons: false

# Set to try to catch LegendaryWeapons drops right away
Unbreakable on pickup: true

Survival without automatic protections, PVP with automatic protections

Only what players enchant or for specially tagged (by lore) items except in PVP world, all armor and weapons protected. To prevent carrying Unbreakable items from PVP into other worlds, suggest a world-specific inventory plugin like MultiInv or Entei's Inventory Manager. Alternatively, turn on Breakable on leave world and warn players not to take unbreakable items from survival into PVP, else they will lose Unbreakable tag on return to survival world.

Enchanting worldlist: 
- survival_world
- adventure_world

Lore unbreakable string: Unbreakable

# Applies to 3 item below it
Auto fix worldlist:
- pvp_world

Protect armor: true
Protect tools: false
Protect weapons: true

# Set to try to catch LegendaryWeapons drops right away
Unbreakable on pickup: true

Protect Only Upon Command Use

To enable unbreakable items only by command use, all automatic protections need to be turned off, and command use should be permitted for all users (or limited per your preference).

permissions.yml

Because the default is only Operators get to use the command, within your permissions (yes, you need to be using a Permissions plugin) you need to change it such that all users (or whatever group you desire) get the unbreakable.cmd permission.

config.yml

Message on making unbreakable: true
Also repair: true

Protect armor: false
Protect tools: false
Protect weapons: false

Enchanting worldlist:
- really_long_bogus_name_so_that_no_other_world_permits_unbreakable_enchants

Comments

Posts Quoted:
Reply
Clear All Quotes