Rust Legacy Log or block?

Discussion in 'Plugin Requests' started by kaku924, Jan 8, 2016.

  1. Hi, im alredy ask about a cmd log, but now i want to be more specific, i want to give rcon to some Admins (who have some permissions), but i dont want to give the give (xD) permission, or log ALL the /give call (im using VeGive and i know the plugin has a permission but the inv.giveplayer and inv.giveall isnt of VeGive and run on rcon)

    Can somebody guide me? thanks!
     
  2. Open the VeGive.cs after press CTRL + F and paste "bool hasAccess(NetUser netuser)" without the quotes.

    Delete:
    Code:
    bool hasAccess(NetUser netuser)
            {
                if (netuser.CanAdmin()) { return true; }
                else if (permission.UserHasPermission(netuser.playerClient.userID.ToString(), "cangive"))
                {
                    return true;
                }
                else if (permission.UserHasPermission(netuser.playerClient.userID.ToString(), "all"))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
    Put:
    Code:
    bool hasAccess(NetUser netuser)
            {
                if (permission.UserHasPermission(netuser.playerClient.userID.ToString(), "cangive"))
                {
                    return true;
                }
                else if (permission.UserHasPermission(netuser.playerClient.userID.ToString(), "all"))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
    Now only give the permission "cangive" or "all" for who you want to give permission to use /give

    grant user playername cangive

    Should work!
     
  3. this work fine, but maybe u dont understand :/ what i want is block the RCON cmd, i mean if u have rcon but u dont have cangive you can use "inv.giveplayer or inv.giveall" on console.


    Thanks anyway :D
     
  4. Wulf

    Wulf Community Admin

    I'll be porting my RCON Permissions plugin over when I get a chance.
     
  5. Oh sorry :)
     
  6. Really, okay i need just wait so, thanks again Wulf