Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: add option to change links to BattleMetric player profiles instead of Steam profiles #2

Open
tschetschpi2 opened this issue Nov 9, 2022 · 1 comment

Comments

@tschetschpi2
Copy link

Reference:

DisplayName = "Player Profile",
Style = ButtonStyle.Link,
Commands = new List<string> { "https://steamcommunity.com/profiles/{player.id}" },
PlayerMessage = string.Empty,
ServerMessage = string.Empty,
RequirePermissions = false,
AllowedRoles = new List<Snowflake>(),
AllowedGroups = new List<string>()
},
new ImageMessageButtonCommand
{
DisplayName = "Owner Profile",
Style = ButtonStyle.Link,
Commands = new List<string> { "https://steamcommunity.com/profiles/{dsl.entity.owner.id}" },
PlayerMessage = string.Empty,
ServerMessage = string.Empty,
RequirePermissions = false,
AllowedRoles = new List<Snowflake>(),
AllowedGroups = new List<string>()
},

It would be awesome if there was a config setting or other option to change the links from
https://steamcommunity.com/profiles/{player.id}
and
https://steamcommunity.com/profiles/{dsl.entity.owner.id}
to
https://www.battlemetrics.com/rcon/players?filter%5Bsearch%5D={player.id}
and
https://www.battlemetrics.com/rcon/players?filter%5Bsearch%5D={dsl.entity.owner.id}
respectively for those of us who would prefer to pull up their BattleMetrics player profiles instead.

Thank you for a great plugin!

@tschetschpi2
Copy link
Author

I just found that in the config file this is already possible. So please consider this a request for documentation update mentioning that changing the URLs the buttons point to is possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant