mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-06 18:49:39 +01:00
Minor - don't read welcome message if unused
This commit is contained in:
parent
5b1d8c6429
commit
83d6d92a5c
@ -94,8 +94,8 @@ public class WelcomeMessageConfiguration implements Reloadable {
|
||||
* @param player the player for whom the welcome message should be prepared
|
||||
*/
|
||||
public void sendWelcomeMessage(Player player) {
|
||||
List<String> welcomeMessage = getWelcomeMessage(player);
|
||||
if (service.getProperty(RegistrationSettings.USE_WELCOME_MESSAGE)) {
|
||||
List<String> welcomeMessage = getWelcomeMessage(player);
|
||||
if (service.getProperty(RegistrationSettings.BROADCAST_WELCOME_MESSAGE)) {
|
||||
welcomeMessage.forEach(bukkitService::broadcastMessage);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user