NeverWear

Moved

Total Downloads: 3,724 - First Release: Apr 4, 2016 - Last Update: Nov 18, 2016

5/5, 12 likes
  1. It looks like this plugin as well as other will not issue their command for permissions, grant user 76561198119772764 neverwear.weapons' not found.
     
  2. have you tried oxide.grant user?
     
  3. yes that was the command i used. EDIT: Some big changes on oxide actually broke permissions for plugins today, no heads up or anything! This is what you have to use now... perm.grant user
     
  4. Only I have stopped the plugin to work?
     
  5. NO, this PlugIN is not longer working ! It need a Update ...
     
  6. Wulf

    Wulf Community Admin

    oxide.grant hasn’t changed since permissions were added. The perm.grant is just an alias added for oxide.grant.

    Any details?
     
  7. This plugin is working for me no problems. Tools an Weapons do NOT decay
     
  8. No need to handle weapon mods separately when getting the owner player.

    Code:
    // this line works for mods and non-mods, no need to check item.GetOwnerPlayer()
    player = item?.GetRootContainer()?.GetOwnerPlayer();
     
  9. ??? what....please explain this.
     
  10. The code that finds the player.

    Code:
    if (item.GetOwnerPlayer() == null)
    {
       if (item?.info == null) return;
       if (!item.info.shortname.Contains("mod")) return;
       player = item?.GetRootContainer()?.GetOwnerPlayer();
       if (player == null)
           return;
    }
    else player = item.GetOwnerPlayer();
    
    I believe you can get the same results with just using one of the lines:

    Code:
    player = item?.GetRootContainer()?.GetOwnerPlayer();
    
    And then weapon mods don't wear out either.

    I run a plugin on my server to give me admin powers. This seems to work just fine:

    Code:
    // my stuff never degrades
    void OnLoseCondition(Item item, ref float amount)
    {
       if (item?.GetRootContainer()?.GetOwnerPlayer()?.userID == zugzwang)
           item.RepairCondition(amount);
    }
    
     
  11. When players got attacked by other players, their attire is damaging, but permissions are fine. Weapons and tools are fine too.
    UPD: Problem has started after latest update. I added a following code:
    Code:
    if (item.hasCondition) {
        item.RepairCondition(amount);
        Puts(player.displayName + " repaired " + item.info.shortname + " for " + amount);
    }
    And its shows me, proper info for guys with permission. But item is not repairing. Also it might happen with another items for random people. Looks like, problem with RepairCondition() method...
     
    Last edited by a moderator: Jun 17, 2018
  12. Hello,

    Code:
    {
      "useAttire": false, // Stops wear on every item in the category 'Attire'
      "useTools": true, // Stops wear on every item in the category 'Tools'
      "useWeapons": true, // Stops wear on every item in the category 'Weapons'
      "useWhiteList": false, // Use the whitelisted items instead of the whole category
      "WhitelistedItems": [
        "hatchet",
        "pickaxe",
        "rifle.bolt",
        "rifle.ak"
      ]
    }
    for candy cane, repair doesn't work, he lost hp (little) and when attack with it, he dont repaired (added debug for see in console what happens):
    Code:
    [NeverWear] GetOwn repaired candycaneclub for 0.334
    Steam Community :: Screenshot

    with NoDurability plugin, its really good, it is complete
     
    Last edited by a moderator: Jul 6, 2018