1. NOP

    NOP

    Ah, gotcha! And right, but how do I get the players rust client to send my server a command when they click an item on the item list?
     
  2. Wulf

    Wulf Community Admin

    The command should always be sent, it just is ignored by the server when it hits the permission check and they aren't admin.
     
  3. NOP

    NOP

    So I have to modify the oxide code base? Because I use your logger plugin, which logs on almost every Oxide call, and I see nothing in the console when I click an item. Even though my player has the "IsAdmin" Flag.
     
  4. Wulf

    Wulf Community Admin

    No, it doesn't have anything to do with Oxide really, the permission checks are done by Rust in its core.
     
  5. NOP

    NOP

    Okay, so sorry, but I am a little lost here again. If you say the command is always sent, but I cant see it with Oxide, then how do I make the Item List work again for players who are programatically assigned the IsAdmin Flag / Fake Admin?

    I am missing some specifics here -- what Oxide hook are you suggesting I can use, or what method -- can you please give me more specifics?
     
  6. Wulf

    Wulf Community Admin

    The command is cancelled by the permission check before Oxide's hook is triggered. The only way for it to get to that point is if the command's permission check passes.
     
  7. NOP

    NOP

    So the only way to get it to work again would be modifying Assembly-CSharp, correct? Cheers
     
  8. Wulf

    Wulf Community Admin

    No, you can easily replace the item commands in the plugin.
     
  9. NOP

    NOP

    to what? they need to be triggered by the Item List....I am not understanding something here.
     
  10. Wulf

    Wulf Community Admin

    Code:
    [ConsoleCommand("inventory.giveid")]
    void GiveIdCommand(ConsoleSystem.Arg arg)
    {
        // Do stuff
    }
    Universal plugin example:
    Code:
    [Command("inventory.giveid")]
    void GiveIdCommand(Player player, string command, string[] args)
    {
        // Do stuff
    }
     
  11. NOP

    NOP

    Thank you thank you thank you! I have it working now! Here's the weird part though. It's been broken for a full week or two. Last night, I copied the exact following empty method into a plugin :

    Code:
    [ConsoleCommand("inventory.giveid")]
    void GiveIdCommand(ConsoleSystem.Arg arg)
    {
    }
    And then players are able to give themselvs things again! The weirdest part : I remove the method, and they are still able too! Its like adding the ConsoleCommand once, somehow set something permantly. Ive tried server restarts, etc, and everythings still working. Unless some rogue rust update happened while my server WAS RUNNING, idk how this is possible?!?! Any insights?!
     
  12. Wulf

    Wulf Community Admin

    It replaces whatever the original command is from.
     
  13. Ive Added My Self Multiple Times And It Says Permission Not Available blah blah blah Anyway I Can Fix This I Granted My Self Multiple Times In The Group

    Ive Been Doing User grant "SteamID Number" Removeaaa.give but its not working i have left the game and come back still doesnt work any way to get this working?
     
    Last edited by a moderator: Mar 5, 2017
  14. It Says
    Command 'user grant rummzyy removeaaa.give' not found
     
  15. Wulf

    Wulf Community Admin

    That isn't a valid command, you've got the order wrong for the first two parts.
     
  16. Im Using Your Gift Removal Thing Thanks You For Building It Wulf Removeaaa is too confusing
     
  17. I know this already has been posted by @NOP (Thanks!) but to make it more clear, please read.
    To allow NON-ADMIN players the ability to use the f1 item list copy and paste this empty method in the plugin:
    Code:
    [ConsoleCommand("inventory.giveid")]
    void GiveIdCommand(ConsoleSystem.Arg arg)
    {
    }
    And if you would like them to be able to use the givearm command (also uses item list), copy and paste this empty method aswell:
    Code:
    [ConsoleCommand("inventory.givearm")]
    void GiveArmCommand(ConsoleSystem.Arg arg)
    {
    }
     
  18. Where at do we put paste this in the plugin? Does it go into a specific spot?
     
  19. Nope it doesn't matter as long as it isn't inside of an existing method. After the
    Code:
    ///</summary>
    And before
    Code:
    void OnServerInitialized()
    is where I put it.
     
  20. Thanks, it works like a charm!