kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics from 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
161 stars 69 forks source link

Plug-in affects disabled worlds #615

Closed GabrielChev closed 1 year ago

GabrielChev commented 2 years ago

Hello,

Is there a way to completely disable the plug-in in a world ?

I put the world "world" in world blacklist and after in all blacklists for turn-off the plug-in just in this world. But i noted that :

The shield continues to not deflects the arrow like normally in vanilla 1.18 The calculation of damage is not the same as in vanilla (Full Protection 4 netherite is much too resistant, don't know if it's because of the damage given calculation or protection enchant claculation or maybe netherite)

My server is Paper-Spigot version 1.18.2

Here is my config.yml (in txt format for transfer) :

config.txt

No log error

Thanks in advance for your help

kernitus commented 2 years ago

Would you have some examples of what the damage being actually done vs what you expect it to be? Perhaps you could collect logs by turning on debug mode in the config

GabrielChev commented 1 year ago

It would take a long time to set up BUT If You have any doubts about the damage, Note that my configuration affects a blacklisted-world also in another way :

Please, their is a way to COMPLETLY disable the plug-in in a specific world ? (check my config.txt) Thanks in advance

rayzr522 commented 1 year ago

apologies for the previous (since deleted) reply, I had several tabs open and replied to the wrong issue oops

the issue is that you have worlds: [world] at the root level of the config, not under the shield-damage-reduction section. if you wish to blacklist it only in world, you would need to do the following:

shield-damage-reduction:
  # This module allows changing the damage reduction behaviour of shields
  enabled: true
  worlds: [world]

as of right now there is no way to whitelist/blacklist ALL modules simultaneously, so you'll need to specify this worlds section under each module section. i will look into adding a global toggle in the future & also updating the default config file as it is missing the worlds section for that module!