Skip to content

Server join/leave messages & adding a "switch server" message #149

@Jadiction

Description

@Jadiction

Describe the solution you'd like
In joinmessage.yml -

  1. Add per-server join/leave messages. So everyone on that server sees the custom message rather than the default Minecraft yellow "Player has joined the game". (this is different than the network join/leave messages that are sent to everyone on the network)
  2. When a player joins another server on the BungeeCord network, it should show a "switched server" message. Right now, when a player leaves, all other players just think they left the server (network). It should show "Player has moved to %server%" or "Player has switched from %serverfrom% to %serverto%." (Ideally, you add a config to modify the local.
  3. When a player joins or leaves, the server join/leave messages should get rid of the default Minecraft message, my suggestion is to cancel the default message if the config join message isn't set to false. For example, the text below would be canceled:
    image

Describe alternatives you've considered
If 2 & 3 are added, then 1 may not be necessary since the "moved servers" message will cover that area, but the more settings & customization, the better.

YML Example
joinmessages.yml example:

# Should network join messages be displayed?
shownetworkjoin: true
# Should network quit messages be displayed?
shownetworkquit: true

# Should server join messages be displayed?
showserverjoin: true
# Should server quit messages be displayed?
showserverquit: true

##############################################################

# USES STANDARD MINECRAFT '&X' COLOUR/FORMAT CODES
# %NAME% = The name of the sender

# NETWORK join message
networkjoin: "&7[&a+&7] &7%NAME% joined the network"

# NETWORK SILENT join message
silentnetworkjoin: "&7[&a+&7] &7%NAME% joined the network silently"

# NETWORK quit message
networkquit: "&7[&c-&7] &7%NAME% left the network"

# NETWORK SILENT quit message
silentnetworkquit: "&7[&c-&7] &7%NAME% left the network silently"


# SERVER join message
serverjoin: "&7[&a+&7] &7%NAME% joined the server"

# SERVER SILENT join message
silentserverjoin: "&7[&a+&7] &7%NAME% joined the server silently"

# SERVER quit message
serverquit: "&7[&c-&7] &7%NAME% left the server"

# SERVER SILENT quit message
silentserverquit: "&7[&c-&7] &7%NAME% left the server silently"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions