Jump to content

Question

Posted

So im looking for some help iv been trying to sort this for a while so i see servers where you do /kit and there will be a discord kit but to get that they have to go on my discord and verify! Can someone please help me figure a way out to make it?

 

Thank you!

Recommended Posts

  • 0
Posted
7 hours ago, Russ said:

What kit plugin are you using? What are you using to link accounts?

Hello im using Rust Kits for the kits plugin and i dont have anything to link the accounts that's what im struggling with.

  • 0
Posted (edited)

You'll need to create a Discord bot and generate an API token for either of these to work, its free and can be done here. If you need any help let me know, its pretty straight forward.

Discord Auth from Umod is pretty straightforward or Discord Core on Codefling is pretty good. You'll need one in order for them to be assigned the Discord group.

Discord Auth

With this one you would type, for example, /auth in game and it will then give you a 5 digit code. The player would then DM your discord bot with this code and if its correct they'll be added to the discord group.

Discord Core

This plugin makes it a bit simpler. It creates a button in your discord that players click to autherise themselves. They then get a code given to them and type /discord <code> and are added to the group.

Edited by Russ
  • Like 1
  • 0
Posted
19 minutes ago, Russ said:

You'll need to create a Discord bot and generate an API token for either of these to work, its free and can be done here. If you need any help let me know, its pretty straight forward.

Discord Auth from Umod is pretty straightforward or Discord Core on Codefling is pretty good. You'll need one in order for them to be assigned the Discord group.

Discord Auth

With this one you would type, for example, /auth in game and it will then give you a 5 digit code. The player would then DM your discord bot with this code and if its correct they'll be added to the discord group.

Discord Core

This plugin makes it a bit simpler. It creates a button in your discord that players click to autherise themselves. They then get a code given to them and type /discord <code> and are added to the group.

Your a legend thank you soo much im gonna try do it now and let you know how it goes!!

  • 0
Posted

not gonna lie im having zero luck iv downloaded and installed the required plugins but i cant find where to put the api key and also i dont think the plugins are working

  • 0
Posted

What are you using? Carbon or Oxide?

When you load the plugin for the first time it should create a config file in the config folder, you'd then enter your API Token in there. This is only for Discord Auth or Discord Core which ever you are using. The kits plugin doesn't need a bot token

  • 0
Posted
4 hours ago, Russ said:

What are you using? Carbon or Oxide?

When you load the plugin for the first time it should create a config file in the config folder, you'd then enter your API Token in there. This is only for Discord Auth or Discord Core which ever you are using. The kits plugin doesn't need a bot token

this is what i get when i try reload discordcore 

06/03 01:17:38 [Info] Oxide.Ext.Discord is referenced by DiscordCore plugin but is not loaded

06/03 01:17:38 [Info] [CSharp] Started Oxide.Compiler v successfully

06/03 01:17:42 [Info] Ignored unexpected plugin compilation failure: DiscordCore

06/03 01:17:42 [Info] Error while compiling DiscordCore: The type or namespace name 'Discord' does not exist in the namespace 'Oxide.Ext' (are you missing an assembly reference?) | Line: 7, Pos: 17

  • 0
Posted
Just now, Russ said:

So you've placed Oxide.Ext.Discord in the RustDedicated/Managed/ folder?

 

Yeah that's there then discord core plugin is in too and its made a config file too now i dont know where to go from here i cant thank you enough iv tried contacting the creator of discord core and i guess he doesnt like people messaging him 😄

  • 0
Posted (edited)

You can now type /kit and it should open a UI for you to add new kits. Players will use the same UI but won't have access to make new kits etc.

Simply put all the items you want in the kit in your inventory and any clothing in the clothing section and weapons in the hotbar. Fill out the details in the form with yours, for permission, you'll want to enter kit.discord (its important it has kit. at the beginning) This will create a discord kit then we can move on 😉

Edited by Russ
  • 0
Posted
15 hours ago, Russ said:

You can now type /kit and it should open a UI for you to add new kits. Players will use the same UI but won't have access to make new kits etc.

Simply put all the items you want in the kit in your inventory and any clothing in the clothing section and weapons in the hotbar. Fill out the details in the form with yours, for permission, you'll want to enter kit.discord (its important it has kit. at the beginning) This will create a discord kit then we can move on 😉

I have the discord kit made with the permission whats next?

  • 0
Posted

So you'll need to create the group in Oxide now by typing this in console;

o.group add discord

Now you can assign the kit to this group by typing;

oxide.grant group discord kits.discord

(Worth noting that in my previous post I wrote kit.discord when I meant kits.discord (notice the s))

  • 0
Posted
50 minutes ago, Russ said:

So you'll need to create the group in Oxide now by typing this in console;

o.group add discord

Now you can assign the kit to this group by typing;

oxide.grant group discord kits.discord

(Worth noting that in my previous post I wrote kit.discord when I meant kits.discord (notice the s))

Perfect ill do that now but then how does it assign the player the group once they verify?

  • 0
Posted
43 minutes ago, Russ said:

Which version of Discord Core are you using? There is one on UMod and one on here with the same name.

Im using this one. 

 

Iv done the group and gave the group the kits discord permission.

  • 0
Posted

If you havent already done so you need to enter your BOT API Token in the oxide/config/DiscordCore.json file and set any role or channel ID's that you desire. We have a "#get-roles" channel on our server so we've used that channels ID to display a "Verify Connection" button for players to click. To get this button to appear. type /generateconnect. This will then get the bot to create the button required.

Players would then click the "Verify Connection" button which would tell them to type /discord <code> in-game. If successful they'll be added to the Discord group and should have access to your Discord kit.

  • 0
Posted

I think im all set now just need to wait and see if it works when people try it thank you very much if you dont mind asking what server do you have?

  • 0
Posted

You can test it yourself rather than waiting.

If you have the button just click it and it'll give you the code ie. /discord <code> type that in-game

 

  • 0
Posted

Just another quick question because you do seem clued up about it so im giving out free vip for everyone that joins is there a way i can make it so i dont have to manually give the vip role when they join as i cant be on 24 7 😄

  • 0
Posted

By default Oxide puts players in a usergroup called "default" which I usually rename to member. In the Oxide folder there should be a file thats called oxide.config.json. In that file under Default Groups, you can either change "Players": "default", to  "Players": "vip", (which will put all new players in the vip usergroup) OR add  "Players": "vip", underneath "Players": "default", (which I believe would put players in the default usergroup and the vip usergroup)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

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.