mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 01:00:18 +01:00
Change how welcome message is send
This commit is contained in:
parent
37eedfde62
commit
48b845b1f5
@ -200,8 +200,8 @@ public class ProcessSyncronousPlayerLogin implements Runnable {
|
||||
player.saveData();
|
||||
if (Settings.bungee)
|
||||
sendBungeeMessage();
|
||||
// Login is finish, display welcome message
|
||||
if (Settings.useWelcomeMessage)
|
||||
// Login is finish, display welcome message if we use email registration
|
||||
if (Settings.useWelcomeMessage && Settings.emailRegistration)
|
||||
if (Settings.broadcastWelcomeMessage) {
|
||||
for (String s : Settings.welcomeMsg) {
|
||||
Bukkit.getServer().broadcastMessage(plugin.replaceAllInfo(s, player));
|
||||
|
@ -142,12 +142,6 @@ public class ProcessSyncPasswordRegister implements Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
// Request Login after Registration
|
||||
if (Settings.forceRegLogin) {
|
||||
forceLogin(player);
|
||||
return;
|
||||
}
|
||||
|
||||
// Register is finish and player is logged, display welcome message
|
||||
if (Settings.useWelcomeMessage) {
|
||||
if (Settings.broadcastWelcomeMessage) {
|
||||
@ -161,6 +155,12 @@ public class ProcessSyncPasswordRegister implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
// Request Login after Registration
|
||||
if (Settings.forceRegLogin) {
|
||||
forceLogin(player);
|
||||
return;
|
||||
}
|
||||
|
||||
if (Settings.bungee) {
|
||||
sendBungeeMessage();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user