mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-04 17:50:06 +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();
|
player.saveData();
|
||||||
if (Settings.bungee)
|
if (Settings.bungee)
|
||||||
sendBungeeMessage();
|
sendBungeeMessage();
|
||||||
// Login is finish, display welcome message
|
// Login is finish, display welcome message if we use email registration
|
||||||
if (Settings.useWelcomeMessage)
|
if (Settings.useWelcomeMessage && Settings.emailRegistration)
|
||||||
if (Settings.broadcastWelcomeMessage) {
|
if (Settings.broadcastWelcomeMessage) {
|
||||||
for (String s : Settings.welcomeMsg) {
|
for (String s : Settings.welcomeMsg) {
|
||||||
Bukkit.getServer().broadcastMessage(plugin.replaceAllInfo(s, player));
|
Bukkit.getServer().broadcastMessage(plugin.replaceAllInfo(s, player));
|
||||||
|
@ -142,12 +142,6 @@ public class ProcessSyncPasswordRegister implements Runnable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Request Login after Registration
|
|
||||||
if (Settings.forceRegLogin) {
|
|
||||||
forceLogin(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Register is finish and player is logged, display welcome message
|
// Register is finish and player is logged, display welcome message
|
||||||
if (Settings.useWelcomeMessage) {
|
if (Settings.useWelcomeMessage) {
|
||||||
if (Settings.broadcastWelcomeMessage) {
|
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) {
|
if (Settings.bungee) {
|
||||||
sendBungeeMessage();
|
sendBungeeMessage();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user