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
|
* @param player the player for whom the welcome message should be prepared
|
||||||
*/
|
*/
|
||||||
public void sendWelcomeMessage(Player player) {
|
public void sendWelcomeMessage(Player player) {
|
||||||
List<String> welcomeMessage = getWelcomeMessage(player);
|
|
||||||
if (service.getProperty(RegistrationSettings.USE_WELCOME_MESSAGE)) {
|
if (service.getProperty(RegistrationSettings.USE_WELCOME_MESSAGE)) {
|
||||||
|
List<String> welcomeMessage = getWelcomeMessage(player);
|
||||||
if (service.getProperty(RegistrationSettings.BROADCAST_WELCOME_MESSAGE)) {
|
if (service.getProperty(RegistrationSettings.BROADCAST_WELCOME_MESSAGE)) {
|
||||||
welcomeMessage.forEach(bukkitService::broadcastMessage);
|
welcomeMessage.forEach(bukkitService::broadcastMessage);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user