Jump to content

Plugin conflict please help Metabolism <3

Pending 1.2.12

SlayersRust
SlayersRust

Posted

So I use BetterMetabolism Plugin for a thing called KING VIP that gives certain VIP players 500 HP on respawn and maintain that HP.

I've tested with and without EpicLoot items worn on the player and removed from their inventory and plugin unloaded and reloaded. It seems as soon as I load the EpicLoot Plugin anyone with KING VIP 500 HP automatically goes up to +900HP and gains +400 HP for some reason.

I'll include a video of the moment I do oxide.reload EpicLoot

https://codefling.com/plugins/better-metabolism

Is there a way to fix this? Sadly I won't be able to use EpicLoot across my 13 servers until I can figure out this plugin conflict and fix it ❤️  Any help is greatly appreciated.

BetterMetabolism.json config

{
  "Enable Max Health Option": true,
  "Increase health to tea level (true) or increase health by tea value (false)": false,
  "Metabolism Permissions": {
    "bettermetabolism.default": {
      "Health": 100.0,
      "Max Health": 100.0,
      "Max Calories": 500.0,
      "Calories": 500.0,
      "Max Hydration": 250.0,
      "Hydration": 250.0
    },
    "bettermetabolism.vip": {
      "Health": 100.0,
      "Max Health": 100.0,
      "Max Calories": 1000.0,
      "Calories": 1000.0,
      "Max Hydration": 1000.0,
      "Hydration": 1000.0
    },
    "bettermetabolism.vipking": {
      "Health": 500.0,
      "Max Health": 500.0,
      "Max Calories": 9999.0,
      "Calories": 9999.0,
      "Max Hydration": 9999.0,
      "Hydration": 9999.0
    }
  }
}

imthenewguy

Posted

The only thing I can think of is see how BetterMetabolism is using the hook I added.

ELOnModifyHealth

The logic is:

  • When the server is loaded, or a player adds/removes an epic item:
    • The plugin will check to see if the player's maxHealthMod given by EpicLoot is > 0. If it is, it will create a new modifier and add it to the player unless ELOnModifyHealth is returned with a non-null value.
    • If the value of the maxHealthMod is 0, the player has the max_health modifier, and the mod duration is above the default, it will call ELOnModifyHealth again, and if null, it will remove the max health of the player.

It should at no point add to the players modified health, unless that player has max health clothing.

I will add some logic to not touch the MaxHealth of the player if the MaxHealth buff is disabled.

 

SlayersRust

Posted

8 minutes ago, imthenewguy said:

The only thing I can think of is see how BetterMetabolism is using the hook I added.

ELOnModifyHealth

The logic is:

  • When the server is loaded, or a player adds/removes an epic item:
    • The plugin will check to see if the player's maxHealthMod given by EpicLoot is > 0. If it is, it will create a new modifier and add it to the player unless ELOnModifyHealth is returned with a non-null value.
    • If the value of the maxHealthMod is 0, the player has the max_health modifier, and the mod duration is above the default, it will call ELOnModifyHealth again, and if null, it will remove the max health of the player.

It should at no point add to the players modified health, unless that player has max health clothing.

I will add some logic to not touch the MaxHealth of the player if the MaxHealth buff is disabled.

 

Thank you for the detailed information. Is there also any way for me to disable all possible Max Health options in the config? If so how do I do so? I don't want anything to adjust Max Health. I use EpicLoot for the other perks., Max Health Modifiers I want limited to my KING VIP if that makes sense ❤️ Here is my EpicLootConfig

EpicLoot (2).json

imthenewguy

Posted

5 minutes ago, SlayersRust said:

Thank you for the detailed information. Is there also any way for me to disable all possible Max Health options in the config? If so how do I do so? I don't want anything to adjust Max Health. I use EpicLoot for the other perks., Max Health Modifiers I want limited to my KING VIP if that makes sense ❤️ Here is my EpicLootConfig

EpicLoot (2).json 82.16 kB · 0 downloads

Disabling it in the config wont fix it at this point. I will update it so that if the Maxhealth buff is set to enable: false, it won't run any logic to add or remove modifiers.

SlayersRust

Posted

So I just remove any set bonus modifiers or set them to 0 and it will be okay once your update comes out?

            "MaxHealth": {
              "modifier": 0.0,
              "Permissions [permission / title]": null

Thanks mate will monitor 🙂 I really appreciate the help. I really wanted to add more cool item type plugins of yours. I was wondering the difference of Item Perks plugin/Legendary items and EpicLoot plugin. I may add both if they work together and enchanting I'll probably buy

SlayersRust

Posted

25 minutes ago, imthenewguy said:

Ya you can run all 3 together. There is an awesome UI plugin that was made to tie all 3 plugins together.

https://codefling.com/plugins/advanced-item-crafting

Sick I'll check this out! Appreciate the help. Will be adding many more of your plugins to my PVE and PVP servers.

  • Love 1
SlayersRust

Posted (edited)

Will watch for update

 

Edited by SlayersRust
imthenewguy

Posted

3 hours ago, SlayersRust said:

Will watch for update

 

Can grab it on my discord early if you need.

1.8m

Downloads

Total number of downloads.

8.4k

Customers

Total customers served.

126.6k

Files Sold

Total number of files sold.

2.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.