Skip to content

Add first join message type for Discord - #5160

Merged
mdcfe merged 7 commits into
EssentialsX:2.xfrom
x86-39:discord-first-join-message
Dec 24, 2022
Merged

Add first join message type for Discord#5160
mdcfe merged 7 commits into
EssentialsX:2.xfrom
x86-39:discord-first-join-message

Conversation

@x86-39

Copy link
Copy Markdown
Contributor

Information

This PR partially closes #5155

Details

Proposed feature:
Add a new message type for when a player has joined for the first time.

This adds a new type first-join with the default placeholder ":arrow_right: {displayname} has joined the server for the first time!".

Environments tested:

OS: Fedora 36

Java version: 17.0.5

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8
    Don't see how this could differ on other server versions.

Demonstration:
As an example here I have made it so that the first-join messages are sent to the staff channel. You would likely just want these in the primary channel though.

...
# To disable a message from showing, use 'none' as the channel name.message-types:
# Join messages sent when a player joins the Minecraft server.join: primary# Join messages sent when a player joins the Minecraft server for the first time.first-join: staff
...
# This is the message sent to Discord when a player joins the minecraft server for the first time# The following placeholders can be used here:# - {username}: The name of the user joining# - {displayname}: The display name of the user joining# - {joinmessage}: The full default join message used in game# - {online}: The amount of players online# - {unique}: The amount of unique players to ever join the server# ... PlaceholderAPI placeholders are also supported here too!first-join: ":arrow_right:** {displayname} has joined the server for the first time!**"

image

@x86-39x86-39 changed the title Add roles selection optionAdd first join message type for DiscordNov 16, 2022
@x86-39

Copy link
Copy Markdown
ContributorAuthor

Updated title, GitHub had changed it back when I switched branches

@JRoyJRoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few things otherwise good

Comment threadEssentialsDiscord/src/main/resources/config.yml Outdated
x86-39and others added 3 commits November 19, 2022 01:18
…dSettings.java
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Comment threadEssentialsDiscord/src/main/resources/config.yml Outdated
@mdcfe
mdcfe merged commit db10678 into EssentialsX:2.xDec 24, 2022
@mdcfe

mdcfe commented Dec 24, 2022

Copy link
Copy Markdown
Member

Thanks for the contribution! Apologies for the delay in merging this.

@x86-39

Copy link
Copy Markdown
ContributorAuthor

No worries! I've got a few other Discord PRs open, there was one I was going to change something about which I honestly forgot about up until now, I'll get to working on that right now.

rewsdjad1 pushed a commit to rewsdjad1/EssentialsXPlus that referenced this pull request Aug 13, 2026
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Add a new message type for when a player has joined for the first time.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@x86-39@mdcfe@JRoy