mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-20 15:47:38 +01:00
#701 Alternate accounts are shown to all players with their own name
This commit is contained in:
parent
9a72fe53b0
commit
4d634086cd
@ -22,7 +22,6 @@ import fr.xephi.authme.settings.properties.RegistrationSettings;
|
|||||||
import fr.xephi.authme.settings.properties.RestrictionSettings;
|
import fr.xephi.authme.settings.properties.RestrictionSettings;
|
||||||
import fr.xephi.authme.settings.properties.SecuritySettings;
|
import fr.xephi.authme.settings.properties.SecuritySettings;
|
||||||
import fr.xephi.authme.task.MessageTask;
|
import fr.xephi.authme.task.MessageTask;
|
||||||
import fr.xephi.authme.util.BukkitService;
|
|
||||||
import fr.xephi.authme.util.StringUtils;
|
import fr.xephi.authme.util.StringUtils;
|
||||||
import fr.xephi.authme.util.Utils;
|
import fr.xephi.authme.util.Utils;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -230,13 +229,14 @@ public class AsynchronousLogin implements Process {
|
|||||||
ConsoleLogger.info("The user " + player.getName() + " has " + auths.size() + " accounts:");
|
ConsoleLogger.info("The user " + player.getName() + " has " + auths.size() + " accounts:");
|
||||||
ConsoleLogger.info(message);
|
ConsoleLogger.info(message);
|
||||||
|
|
||||||
for (Player player : service.getOnlinePlayers()) {
|
for (Player onlinePlayer : service.getOnlinePlayers()) {
|
||||||
if ((player.getName().equalsIgnoreCase(this.player.getName()) && plugin.getPermissionsManager().hasPermission(player, PlayerPermission.SEE_OWN_ACCOUNTS))) {
|
if (onlinePlayer.getName().equalsIgnoreCase(player.getName())
|
||||||
player.sendMessage("You own " + auths.size() + " accounts:");
|
&& plugin.getPermissionsManager().hasPermission(onlinePlayer, PlayerPermission.SEE_OWN_ACCOUNTS)) {
|
||||||
player.sendMessage(message);
|
onlinePlayer.sendMessage("You own " + auths.size() + " accounts:");
|
||||||
} else if (plugin.getPermissionsManager().hasPermission(player, AdminPermission.SEE_OTHER_ACCOUNTS)) {
|
onlinePlayer.sendMessage(message);
|
||||||
player.sendMessage("The user " + player.getName() + " has " + auths.size() + " accounts:");
|
} else if (plugin.getPermissionsManager().hasPermission(onlinePlayer, AdminPermission.SEE_OTHER_ACCOUNTS)) {
|
||||||
player.sendMessage(message);
|
onlinePlayer.sendMessage("The user " + player.getName() + " has " + auths.size() + " accounts:");
|
||||||
|
onlinePlayer.sendMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user