BRForgers / DisFabric

Mozilla Public License 2.0
23 stars 24 forks source link

suggestion - link players to discord accounts, assign discord roles to mirror roles/ranks ingame #52

Open pahanakun opened 2 years ago

pahanakun commented 2 years ago

I've seen this done on another fabric server, but unfortunately I've had no luck with their mod. Development is kind of private, and it doesn't seem to like running on Windows systems (they run on linux).

Players type "/link" in game, which gives them a code, that they run with a command in Discord, and this links their in-game player to their discord account.

As for assigning roles, this could be done with an in-game command, the Discord bot would find the correct discord user from its link database, and assign a role. ie /disfabric assignrole (playername) (rolename)

I've already got ranks set up on my server using command blocks, all I would have to do is add another chain command block use the command with the @s selector

Xujiayao commented 2 years ago

When the player executes e.g. /link Username#0000 in game, the mod can easily obtain the player's UUID. Neither of these will change, and is a simpler way to implement.