diff --git a/docs/config.md b/docs/config.md index 3ec18f437..af1e1545d 100644 --- a/docs/config.md +++ b/docs/config.md @@ -1,5 +1,5 @@ - + ## AuthMe Configuration The first time you run AuthMe it will create a config.yml file in the plugins/AuthMe folder, @@ -299,11 +299,11 @@ settings: # Should we delay the join message and display it once the player has logged in? delayJoinMessage: false # The custom join message that will be sent after a successful login, - # use 'none' to use the original one. - # Available variables:, + # keep empty to use the original one. + # Available variables: # {PLAYERNAME}: the player name (no colors) # {DISPLAYNAME}: the player name (with colors) - customJoinMessage: 'none' + customJoinMessage: '' # Should we remove the leave messages of unlogged users? removeUnloggedLeaveMessage: false # Should we remove join messages altogether? @@ -460,4 +460,4 @@ To change settings on a running server, save your changes to config.yml and use --- -This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Sat Jan 07 11:07:10 CET 2017 +This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Sat Jan 07 11:33:48 CET 2017 diff --git a/src/main/java/fr/xephi/authme/listener/PlayerListener.java b/src/main/java/fr/xephi/authme/listener/PlayerListener.java index fef21d893..ddd3e430d 100644 --- a/src/main/java/fr/xephi/authme/listener/PlayerListener.java +++ b/src/main/java/fr/xephi/authme/listener/PlayerListener.java @@ -173,7 +173,7 @@ public class PlayerListener implements Listener { } String customJoinMessage = settings.getProperty(RegistrationSettings.CUSTOM_JOIN_MESSAGE); - if (customJoinMessage.isEmpty() && ! customJoinMessage.equalsIgnoreCase("none")) { + if (!customJoinMessage.isEmpty()) { event.setJoinMessage(customJoinMessage.replace("{PLAYERNAME}", player.getName()) .replace("{DISPLAYNAME]", player.getDisplayName())); } diff --git a/src/main/java/fr/xephi/authme/settings/properties/RegistrationSettings.java b/src/main/java/fr/xephi/authme/settings/properties/RegistrationSettings.java index 33d8a6de2..38615b789 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/RegistrationSettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/RegistrationSettings.java @@ -76,12 +76,12 @@ public class RegistrationSettings implements SettingsHolder { @Comment({ "The custom join message that will be sent after a successful login,", - "use 'none' to use the original one.", - "Available variables:,", + "keep empty to use the original one.", + "Available variables:", "{PLAYERNAME}: the player name (no colors)", "{DISPLAYNAME}: the player name (with colors)"}) public static final Property CUSTOM_JOIN_MESSAGE = - newProperty("settings.customJoinMessage", "none"); + newProperty("settings.customJoinMessage", ""); @Comment("Should we remove the leave messages of unlogged users?") public static final Property REMOVE_UNLOGGED_LEAVE_MESSAGE =