.thumb.png.fd19698f82bebaa6c7db15990d1f4c3f.png)
.thumb.png.fd19698f82bebaa6c7db15990d1f4c3f.png)
RustMagicAuth.cs
using Oxide's Config, Data, and Lang systems.
/auth
in-game, and receives a code.
/auth ab12cd34
rustmagicauth.xxxxx.xx
file into your Rust Magic Extensions/ folder
Plugin
The plugin uses Oxide's default systems to handle config, language settings, and data.
It is recommended you clear oxide/data/RustMagicAuth.json
as frequently as you wipe to ensure codes cannot be guessed.
{ "Chat Icon (Steam64 ID)": 76561199093053926, "Chat Prefix": "<color=#d464e8>Magic Auth</color>:", "Valid Auth Code Characters": "1234567890abcdef", "Auth Code Length": 8, "Oxide Group To Check User For": "auth" }
While most of this is self explanatory, it's important to note the following:
Extension
Please see sample.json
after purchase for fully-detailed explanations on what each option does.
Briefly, however:
You can get Discord Role/Server/Channel IDs by going to Settings > Appearance > Developer Mode
This bot will work if you want to have logs in a Staff discord, but if this is the case ensure settings.discord_server_id
has been explicitly set.
find <steam64ID, @User, Discord Username, Discord ID>
Retrieves the link data for the specified user if available.
unlink <@User, Steam64 ID, Discord User ID>
This will remove all in-game permissions, their Discord role, and all data about their accounts that the bot has stored.
reward @User
Allows you to trigger a manual execution of all tasks that would be needed to give a user their rewards.
Useful if, for example, your server is offline when the bot tries to reward the user.
rewards
This is a command intended for users of your community! It will allow them to perform a re-execution of all commands only for themself, with a cooldown of 1 hour.
If you’re tired of users saying “I didn’t get my rewards”, this is perfect for you as you can just tell them to run /rewards and the ticket is resolved.
Migration
As of version 1.2.0, you will be required to merge your existing in-game auth.json file!
Once you are using the latest version of the plugin, you will see that there is a now folder: oxide/data/RustMagicAuth
You can drag and rename your old RustMagicAuth.json data file into here, the new name you want to use is auth.json.
Additionally, there is a new config option: Clear Name Data on Wipe which you can set to true to make the (potentially large) date files clear themselves of useless & old data.
Name Sync
The latest version of Rust Magic Auth now has name syncing!
The RustMagicAuth.cs plugin gathers all of this information and provides an RCON command that the RustMagic bot will execute perioidcally.
It will set the nickname of people in your Discord server to the latest recorded Steam name that they have (authenticated members only).
Role Sync
Along with name syncing, role syncing is now an available feature.
Please be incredibly careful when setting it up, as it has the power to very easily result in financial losses if you are using it with VIPs and Nitro Boosters.
First of all, two-way syncs can be incredibly dangerous. When RustMagicAuth detects that a user has a Discord role you want to sync, it will perform that command across all servers. This means if setup incorrectly, a user receiving VIP on one server could potentially end up having VIP on all servers.
Secondly, due to the nature of Oxide, there is no simple and efficient way to detect when an oxide group is added or removed from a user. Because of this, data is updated only when the user joins a server. This means the previous data doesn’t persist anywhere, and we’re left only with a list of what groups they currently have.
Finally, it’s important to read the sample.json file as you may have missed new command configs or new mandatory settings.
Total number of downloads.
Total customers served.
Total number of files sold.
Total payments processed.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.