Roy 10,832 / 0 Report Post Posted November 30, 2019 Hey everyone, Today I decided to make a User Management plugin that interacts with the GFL API for Members, Supporters, and VIPs in Rust (the game using Oxide/UMod as a server-side library). I did something like this before using lua, but since that's no longer supported by default in Oxide/UMod and it used MySQL instead, I decided to make one in C# which is fully supported with Oxide/UMod along with using our newer REST API. This plugin will be used on our Rust servers which support Oxide/UMod in the future. This was my first time messing around with C# as well, so that was fun. Was pretty easy to pickup on, though. The below is basically being copied from the Gitlab repository's ReadME: Description A plugin created in C# for Rust (Oxide/UMod). Interacts with the GFL API and assigns users their appropriate group on player connect or when the um.reloadusers console command is executed. Installation Place the UserManagement.cs file inside of RustServer/oxide/plugins. Afterwards, edit RustServer/oxide/config/UserManagement.json to your needs. Please also make sure you have existing groups made. You can create groups using oxide.group add <group> <"[Title]"><rank>. Default Config { "Debug": false, "Enabled": true, "Endpoint": "donators", "RemoveExisting": true, "RemoveExistingNoGroup": true, "Token": "MY_AUTH_TOKEN", "URL": "https://api.domain.com/" } Config Descriptions Debug - Whether or not to enable debugging within the plugin. Enabled - Whether or not to enable the plugin. Endpoint - The API endpoint. RemoveExisting - If true, when given a group, it will remove any others that are a part of the plugin from the user. RemoveExistingNoGroup - If the user has no group, it will remove any groups that are a part of the plugin from the user. Token - The API's token that's set using the Authorization header. URL - The API URL (https/SSL is supported). Gitlab Project Feel free to use and modify to your needs Thanks! Share this post Link to post Share on other sites More sharing options...
Rick 1,651 / 17,967 Report Post Posted December 1, 2019 · Hidden Hidden @Roy I believe Xy made a plugin for this a while back when I requested one. Would you like to see? Share this post Link to post Achievements
Roy 10,832 / 0 Report Post Posted December 1, 2019 18 hours ago, Rick said: @Roy I believe Xy made a plugin for this a while back when I requested one. Would you like to see? Do you know if it was coded in lua or not? Lua doesn't come with Oxide anymore by default which I'd assume means it isn't really supported much anymore. This is why I made a version in C#. Thanks. Share this post Link to post Share on other sites More sharing options...
annoying furry 6,300 / 63,935 Report Post Posted December 1, 2019 · Hidden Hidden 2 hours ago, Roy said: Do you know if it was coded in lua or not? Lua doesn't come with Oxide anymore by default which I'd assume means it isn't really supported much anymore. This is why I made a version in C#. Thanks. The version I coded does not use the API, it uses mysql, which is why it needs replacing. However, it is in C# (signature made by @Kaylode) Previously known as Xy. Twitter ❤️Ko-Fi ❤️Github Share this post Link to post
Roy 10,832 / 0 Report Post Posted December 1, 2019 2 minutes ago, Xy said: The version I coded does not use the API, it uses mysql, which is why it needs replacing. However, it is in C# Ah, that makes sense. Well at least we got a rewrite that supports the REST API. Can you give me the source code for the one you made? Share this post Link to post Share on other sites More sharing options...
annoying furry 6,300 / 63,935 Report Post Posted December 1, 2019 · Hidden Hidden 7 minutes ago, Roy said: Ah, that makes sense. Well at least we got a rewrite that supports the REST API. Can you give me the source code for the one you made? sent via discord (signature made by @Kaylode) Previously known as Xy. Twitter ❤️Ko-Fi ❤️Github Share this post Link to post
Roy 10,832 / 0 Report Post Posted December 1, 2019 7 minutes ago, Xy said: sent via discord Thx ❤️❤️❤️❤️ Share this post Link to post Share on other sites More sharing options...