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

Add /discord command to display invite code #4620

Merged
merged 2 commits into from
Nov 6, 2021

Conversation

JRoy
Copy link
Member

@JRoy JRoy commented Nov 6, 2021

Att #4598

# The Discord invite URL that will be shown when a player when using the /discord command or in other areas.
discord-url: "https://discord.gg/invite-code"

@JRoy JRoy added type: enhancement Features and feature requests. module: discord Issues or PRs for the EssentialsDiscord module labels Nov 6, 2021
@JRoy JRoy added this to the 2.19.1 milestone Nov 6, 2021
@JRoy JRoy merged commit 680d323 into EssentialsX:2.x Nov 6, 2021
@JRoy JRoy deleted the feat/discord-command branch November 6, 2021 23:18
@DaliborTrampota
Copy link

@JRoy hello, thank you for adding this feature for me, but it would be great if we could customize the message. Right now its "Join our discord server at {invite-url}" Little kids in our country barely know any english so I'd like to localize it. Its not just for me, i bet many other users find it useful and the config entry could look something like this: discord-command-message: "Join our discord server at {invite}!" and the invite would get replaced with the clickable invite link. Let me know what you think about this, and what are the chances of this being added. Thank you for your time!

@JRoy
Copy link
Member Author

JRoy commented Dec 1, 2021

@JRoy hello, thank you for adding this feature for me, but it would be great if we could customize the message. Right now its "Join our discord server at {invite-url}" Little kids in our country barely know any english so I'd like to localize it. Its not just for me, i bet many other users find it useful and the config entry could look something like this: discord-command-message: "Join our discord server at {invite}!" and the invite would get replaced with the clickable invite link. Let me know what you think about this, and what are the chances of this being added. Thank you for your time!

You can customize the message by making a custom locale file: https://essentialsx.net/wiki/Locale.html#customising-messages

The message you want to change is

discordCommandLink=\u00a76Join our Discord server at \u00a7c{0}\u00a76!

@DaliborTrampota
Copy link

Oh didn't know about that. Thank you!

@DaliborTrampota
Copy link

@JRoy hello, thank you for adding this feature for me, but it would be great if we could customize the message. Right now its "Join our discord server at {invite-url}" Little kids in our country barely know any english so I'd like to localize it. Its not just for me, i bet many other users find it useful and the config entry could look something like this: discord-command-message: "Join our discord server at {invite}!" and the invite would get replaced with the clickable invite link. Let me know what you think about this, and what are the chances of this being added. Thank you for your time!

You can customize the message by making a custom locale file: https://essentialsx.net/wiki/Locale.html#customising-messages

The message you want to change is

discordCommandLink=\u00a76Join our Discord server at \u00a7c{0}\u00a76!

Hey so I'm trying to edit it but first issue: there is no messages file and second I cant find the up-to-date messages file on github. All I could find are those 7 years old ones https://github.com/essentials/Essentials/tree/2.x/Essentials/src :( can you please link me and perhaps add a download/redirect link to this site so other users can find those messages files easily https://essentialsx.net/wiki/Locale.html#Supported-languages

Again thank you.

@JRoy
Copy link
Member Author

JRoy commented Dec 1, 2021

@JRoy hello, thank you for adding this feature for me, but it would be great if we could customize the message. Right now its "Join our discord server at {invite-url}" Little kids in our country barely know any english so I'd like to localize it. Its not just for me, i bet many other users find it useful and the config entry could look something like this: discord-command-message: "Join our discord server at {invite}!" and the invite would get replaced with the clickable invite link. Let me know what you think about this, and what are the chances of this being added. Thank you for your time!

You can customize the message by making a custom locale file: essentialsx.net/wiki/Locale.html#customising-messages
The message you want to change is

discordCommandLink=\u00a76Join our Discord server at \u00a7c{0}\u00a76!

Hey so I'm trying to edit it but first issue: there is no messages file and second I cant find the up-to-date messages file on github. All I could find are those 7 years old ones essentials/Essentials@2.x/Essentials/src :( can you please link me and perhaps add a download/redirect link to this site so other users can find those messages files easily essentialsx.net/wiki/Locale.html#Supported-languages

Again thank you.

The latest would be here https://github.com/EssentialsX/Essentials/blob/2.x/Essentials/src/main/resources/messages.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: discord Issues or PRs for the EssentialsDiscord module type: enhancement Features and feature requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants