Metabolism

Moved

Total Downloads: 2,348 - First Release: Oct 24, 2014 - Last Update: Jan 12, 2018

4.875/5, 16 likes
  1. I give rights to only one group, but the plug-in gives out to everyone.
     
  2. Wulf

    Wulf Community Admin

    Did you grant it to the "default" group? Otherwise there's no way that is possible.
     
  3. At first I provided only for premiums. "oxide.grant group platinum metabolism.allow". The group "default" these rights do not.
    But with the spawn, it still applies to everyone. While set in the config: Use Permissions (true/false)": true

    Perhaps the "Use Permissions" function does not work correctly.
     
  4. Wulf

    Wulf Community Admin

    Did you reload the config after changing that in the config?
     
  5. Of course.
     
  6. Wulf

    Wulf Community Admin

    Checked the plugin. There's no possible way it would apply to a group or user unless you assigned it to them when that setting is true. If the setting is set to false, it would still be working as it would skip the permission check.
     
  7. Use Permissions (true/false)
    Completely does not work, if I set true, the Default group also gets these rights, what's the problem?

    Code:
    {
      "Calories Loss Rate (0.0 - infinite)": 0.03,
      "Calories Spawn Value (0.0 - 500.0)": 500.0,
      "Calories Usage (true/false)": true,
      "CaloriesLossRate": 0.03,
      "CaloriesSpawnValue": 500.0,
      "Health Gain Rate (0.0 - infinite)": 0.03,
      "Health Spawn Value (0.0 to 100.0)": 100.0,
      "Health Usage (true/false)": true,
      "HealthGainRate": 0.03,
      "HealthSpawnValue": 100.0,
      "Hydration Loss Rate (0.0 - infinite)": 0.03,
      "Hydration Spawn Value (0.0 - 250.0)": 250.0,
      "Hydration Usage (true/false)": true,
      "HydrationLossRate": 0.03,
      "HydrationSpawnValue": 250.0,
      "Use Permissions (true/false)": true,
      "UsePermissions": true
    }
     
  8. Wulf

    Wulf Community Admin

    Wulf updated Metabolism with a new update entry:

    2.5.0

     
  9. Unfortunately, it still does not work, I gave all the groups metabolism.none, but they had 100 hp and became immortal
     
  10. Wulf

    Wulf Community Admin

    That is essentially what the permission does, but I can remove the health from it. What exactly did you expect the permission to do?
     
  11. Wulf

    Wulf Community Admin

    Wulf updated Metabolism with a new update entry:

    2.5.1

     
  12. It looks like the plugin is killing the user instantly after spawning because of Thirst or Hunger...

    (23:03:09) | Riddle[8464678/76561197999286293] was suicide by Suicide
    (23:03:15) | Riddle[8464678/76561197999286293] has entered the game
    (23:03:15) | Riddle[8464678/76561197999286293] was killed by Hunger
    (23:03:23) | Riddle[8464678/76561197999286293] has entered the game
    (23:03:24) | Riddle[8464678/76561197999286293] was killed by Hunger
    (23:03:38) | Unloaded plugin Metabolism v2.5.1 by Wulf/lukespragg
    (23:03:40) | Riddle[8464678/76561197999286293] has entered the game
     
  13. Wulf

    Wulf Community Admin

    What do you have the settings set to?
     
  14. Oh wow... it looks like tonights update set them all to 0.... :|

    So, sorry, my bad, didn't look at the config because it was working well before the restart :p
     
  15. Wulf

    Wulf Community Admin

    The Oxide update would not have changed this plugin's config.
     
  16. Guess it shouldn't, but something did... :p Just did a normal update
     
  17. Nobody has metabolism.boost, nobody has metabolism.none yet people are still respawning with the settings I have in the config (max everything). I have the latest version of the plugin. I have reloaded it a few times. Here is my config:

    {
    "Calories loss rate (0.0 - infinite)": 0.03,
    "Calories spawn amount (0.0 - 500.0)": 500.0,
    "Health gain rate (0.0 - infinte)": 0.03,
    "Health spawn amount (0.0 - 100.0)": 100.0,
    "Hydration loss rate (0.0 - infinite)": 0.03,
    "Hydration spawn amount (0.0 - 250.0)": 250.0
    }
     
  18. Wulf

    Wulf Community Admin

    There's no possible way those would be applied unless they have the permission set either in their group or individually. The plugin does absolutely nothing without those set.
     
  19. Code:
            private void Metabolize(BasePlayer player)
            {
                player.health = config.HealthSpawnAmount;
                player.metabolism.calories.value = config.CaloriesSpawnAmount;
                player.metabolism.hydration.value = config.HydrationSpawnAmount;
            }        private void OnPlayerRespawned(BasePlayer player) => Metabolize(player);
    wulf, permissions aren't checked when metabolize is called. so every time a player spawns, their health calories and hydration are set to the config, no matter what the perms are.
     
  20. Wulf

    Wulf Community Admin

    Mmm, you're right; missed that call. I'll get it fixed. :)