Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Automatic Armor Updates #4

Closed
CJCrafter opened this issue Jul 19, 2022 · 1 comment
Closed

Automatic Armor Updates #4

CJCrafter opened this issue Jul 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@CJCrafter
Copy link
Member

Description

Sometimes server admins will need to be able to change properties of armor AFTER it is distributed to players. ArmorMechanics needs a way to update these old pieces of armor to an exact copy of the new armor. This way, players won't gain an unfair advantage/disadvantage after balance changes.

This should be done whenever any entity equips armor.

Requested and paid for by "dice".

Configuration

In config.yml

# Settings this to true will cause ArmorMechanics to delete any armor item that
# no longer exists in config. We have this disabled by default, as this may annoy your playerbase
Delete_Old_Armor: false

# Settings this to false will give you a *MINOR* performance benefit. However,
# any armor that already exists will no longer be updated if you change it in
# config. If you don't understand those implications, leave this to be true.
#
# This option will also prevent players from effectively renaming, enchanting
# or modifying your armor, since it will be reset when they wear it.
Update_Armor: true
@CJCrafter CJCrafter added the enhancement New feature or request label Jul 19, 2022
CJCrafter added a commit that referenced this issue Jul 19, 2022
@CJCrafter
Copy link
Member Author

CJCrafter commented Jul 21, 2022

Works wonders... players can kindof get around it by being online when you run /am reload, but once they relog or reequip their armor, the changes will take effect. If this is an issue on your server, I recommend running a reset (/stop, press start). This way, all players are forced to relog, and the changes will take effect.

Additionally, players can "store" old versions of armor, but they are useless since once they are equipped to an armor slot, they are automatically updated... something to keep in mind though for stores.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant