1. Im developing my own plugin, and I would like to know if there is any line-command in C#(CSharp), that allow players to join atomatically to an spesific group, using the oxide group?
     
  2. Wulf

    Wulf Community Admin

    Players automatically join a group by default, are you wanting to add them to another too?
     
  3. when a player join the server the plugin display a window where you can choose one team. When you choose one option this auto-add you to the respective group.
    example:
    when player1 joins the server and select teamA auto-join to group of teamA and the same way when player2 joins the server and select teamB auto-join to group of teamB

    i dont know if you understand me?
     
  4. Wulf

    Wulf Community Admin

    Code:
    rust.RunServerCommand("usergroup add PLAYERNAMEORID GROUPNAME");
     
  5. I'd argue that using the permission library is better, there's no need to use a command line command as suggested by OP.

    Code:
    permission.PermissionExists(perm)permission.RegisterPermission(perm, plugin)permission.GrantGroupPermission(group, perm, plugin)permission.UserHasPermission(user_id, perm)etc.
    See: Oxide/Permission.cs at master · OxideMod/Oxide · GitHub
     
  6. Wulf

    Wulf Community Admin

    Err yeah, that would be better, no argument. I was thinking about it coming from other plugins, but I believe you can pass null instead of the owner.
     
  7. I try it but dont execute nothing, like jump this line.
    Need a specific library?
     
    Last edited by a moderator: May 21, 2016
  8. Wulf

    Wulf Community Admin

    No, that's just a command and will work without any imports. You can also try the method sqroot posted too.
     
  9. how would i go about setting it up so if someone joins our "steamgroup" they auto go in to our "steamgroup" on the server?? is this such a thing?.
    thanks
     
  10. Wulf

    Wulf Community Admin

    Use the SteamGroups plugin that does this.
     
  11. i tried to copy this command and change groupname to Player because i assigned this grp the permission to quicksmelt... but it says invalid command.
    how would i include every joining player into the quicksmelt grp? thx for the plugin btw didnt know its from you till today :)
     
  12. Wulf

    Wulf Community Admin

    That's not a command, that's code used in plugins. Players are automatically in the "default" group set by Oxide, any other group you'd need to write a plugin to handle it when they join if you REALLY need a standalone group just for a single plugin.
     
  13. okay, i didnt know that.. what is the default grp of oxide? i need to add permissions for quicksmelt...
     
  14. Wulf

    Wulf Community Admin

    default
     
  15. haha okay, thx man.