Skript Version: 2.5-alpha3
Skript Author: Me
Minecraft Version: 1.15.2
Addons using:
Hi, i'd like to check if a user has a role. I know you can use if event-member has role {@role}, but i'd like to do it while in minecraft. Obviously, there is no event-member in minecraft, so i cannot use that. Is there a specific way to check if a person has a role, using their ID? The reason i need this, is because I've made my own discord-minecraft link system, and would like to check if a player has a role on my discord server. The bot i'm using is on a few discords, so if possible is there a way to only include one specific server?
Here's some code that doesn't work, i'd like it to work like this though:
Skript Author: Me
Minecraft Version: 1.15.2
Addons using:
- SharpSK - 1.6.3
- Skript-mirror - 2.0.0-SNAPSHOT - Custom version made by TPGamesNL
- SkBee - 1.4.2
- SkQuery - 3.6.5
- WolvSK - 1.7.0
- Vixio - 2.0.4
Hi, i'd like to check if a user has a role. I know you can use if event-member has role {@role}, but i'd like to do it while in minecraft. Obviously, there is no event-member in minecraft, so i cannot use that. Is there a specific way to check if a person has a role, using their ID? The reason i need this, is because I've made my own discord-minecraft link system, and would like to check if a player has a role on my discord server. The bot i'm using is on a few discords, so if possible is there a way to only include one specific server?
Here's some code that doesn't work, i'd like it to work like this though:
Code:
command /active:
trigger:
#{discord::name::%player%} is the discord id of the player
if {discord::name::%player%} has role named "Active" in "That One Guy's Streamer Server":
send "&aYou have the active role!"
else:
send "&cNope!"