@EventHandler
public void playerLogin(PlayerLoginEvent event){
VPPlayer player = preLoad(event.getPlayer());
if(player == null){
ErrorLogger.addError("Couldn't preload " + event.getPlayer());
event.setResult(Result.KICK_OTHER);
return;
}
if(player.isOnline()){
event.setResult(Result.KICK_OTHER);
//player.setOffline();
return;
}
VanillaPlusCore.getChannelManager().init(player);
VPPLoginEvent e = new VPPLoginEvent(player);
e.setResult(Result.ALLOWED);
Bukkit.getServer().getPluginManager().callEvent(e);
event.setResult(e.getResult());
}
java类org.bukkit.event.player.PlayerLoginEvent.Result的实例源码
PlayerManager.java 文件源码
项目:VanillaPlus
阅读 32
收藏 0
点赞 0
评论 0
PlayerListener.java 文件源码
项目:OldBukkit
阅读 34
收藏 0
点赞 0
评论 0
@EventHandler
void onJoin(PlayerLoginEvent e) {
if (BanManager.isBanido(e.getPlayer().getName())) {
String[] ban = BanManager.getBan(e.getPlayer().getName()).split(";");
String motivo = ban[2], admin = ban[3];
int tempo = Integer.parseInt(ban[1]);
if (tempo == 0) {
e.disallow(Result.KICK_OTHER, MensagensManager.getMensagem("Ban.Join.Permanente").replace("<admin>", admin).replace("<motivo>", motivo));
return;
}
if (Utils.getTempoRestante(e.getPlayer().getName()) >= tempo) {
BanManager.unbanPlayer(e.getPlayer().getName());
return;
}
long tempoRestante = (tempo - Utils.getTempoRestante(e.getPlayer().getName()));
e.disallow(Result.KICK_OTHER, MensagensManager.getMensagem("Ban.Join.Temporario").replace("<tempo>", Long.toString(tempoRestante)).replace("<admin>", admin).replace("<motivo>", motivo));
} else if (BanManager.isIpBanido(e.getAddress().getHostName())) {
e.disallow(Result.KICK_OTHER, MensagensManager.getMensagem("Ban.Join.Ip_Banido"));
}
}
PlayerConnectEvents.java 文件源码
项目:Pokkit
阅读 22
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = false)
public void onPlayerLogin(cn.nukkit.event.player.PlayerLoginEvent event) {
if (canIgnore(PlayerLoginEvent.getHandlerList())) {
return;
}
Player bukkitPlayer = PokkitPlayer.toBukkit(event.getPlayer());
InetAddress address = bukkitPlayer.getAddress().getAddress();
PlayerLoginEvent bukkitEvent = new PlayerLoginEvent(bukkitPlayer, bukkitPlayer.getAddress().getHostName(),
address, event.isCancelled() ? Result.KICK_OTHER : Result.ALLOWED, event.getKickMessage(), address);
Bukkit.getPluginManager().callEvent(bukkitEvent);
event.setCancelled(bukkitEvent.getResult() != Result.ALLOWED);
event.setKickMessage(bukkitEvent.getKickMessage());
}
GameState.java 文件源码
项目:Scapegoat
阅读 26
收藏 0
点赞 0
评论 0
/**
* Triggered when a player TRIES to join the server.
* @param e
*/
@EventHandler
public void onPlayerLogin(PlayerLoginEvent e)
{
Player p = e.getPlayer();
if (plugin.isInMaintenanceMode() && !p.isOp())
{
e.disallow(Result.KICK_OTHER,
ChatColor.YELLOW + plugin.getMaintenanceMessage());
}
else if (SGOnline.getPlayerCount() >= plugin.getMaxPlayers())
{
e.disallow(Result.KICK_FULL, ChatColor.YELLOW
+ "Le serveur est plein !");
}
}
BanListener.java 文件源码
项目:CraftoPlugin
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
public void onPlayerLogin(final PlayerLoginEvent event) {
final Optional<CraftoPlayer> player = CraftoPlayer.getPlayer(event.getPlayer());
if (!player.isPresent()) { CraftoMessenger.warnStaff("Cant find craftoplayer instance of " + event.getPlayer().getName() + "!"); return; }
final Collection<Ban> bans = this.module.getBans(player.get());
if (!bans.isEmpty()) {
for (final Ban ban : bans) {
if (!ban.hasExpired()) {
if (ban.isKick()) {
event.disallow(Result.KICK_BANNED, this.module.kick.getKickMessage(ban));
}
else {
CraftoMessenger.warnStaff(player.get().getName() + " versucht zu connecten obwohl er noch gebannt ist.");
event.disallow(Result.KICK_BANNED, this.module.ban.getKickMessage(ban));
}
}
}
}
}
BanListener.java 文件源码
项目:BetterAssociations
阅读 23
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.LOWEST)
public void tooManyLoggedInAccounts(PlayerLoginEvent event){ // Set to join because if kicked on login ip info isnt tracked.
UUID name = event.getPlayer().getUniqueId();
int count = 0;
int allowed = plugin.getConfig().getInt("banmanager.set.altlimit");
if (allowed == 0) return;
List<UUID> alts = am.getAltsListUUID(name);
Player[] players = Bukkit.getOnlinePlayers();
for (Player p: players)
if(alts.contains(p.getUniqueId())) count++;
if (count > allowed){
String reason = plugin.getConfig().getString("banmanager.set.altlimitreason");
event.setKickMessage(reason);
event.setResult(Result.KICK_BANNED);
}
}
PlayerListener.java 文件源码
项目:CrazyLogin
阅读 50
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH)
@Permission("crazylogin.warnsession")
@Localized({ "CRAZYLOGIN.KICKED.SESSION.DUPLICATE", "CRAZYLOGIN.SESSION.DUPLICATEWARN $Name$ $IP$" })
public void PlayerLoginSessionCheck(final AsyncPlayerPreLoginEvent event) {
if (plugin.isForceSingleSessionEnabled()) {
final Player player = Bukkit.getPlayerExact(event.getName());
if (player != null) {
if (plugin.isForceSingleSessionSameIPBypassEnabled()) {
final LoginPlayerData data = plugin.getPlayerData(player);
if (data != null) {
if (event.getAddress().getHostAddress().equals(data.getLatestIP())) {
return;
}
}
}
event.setLoginResult(AsyncPlayerPreLoginEvent.Result.KICK_OTHER);
event.setKickMessage(plugin.getLocale().getLocaleMessage(player, "KICKED.SESSION.DUPLICATE"));
plugin.broadcastLocaleMessage(true, "crazylogin.warnsession", true, "SESSION.DUPLICATEWARN", player.getName(), event.getAddress().getHostAddress());
plugin.sendLocaleMessage("SESSION.DUPLICATEWARN", player, event.getAddress().getHostAddress(), player.getName());
plugin.getCrazyLogger().log("AccessDenied", "Denied access for player " + player.getName() + " @ " + event.getAddress().getHostAddress() + " because of a player with this name being already online");
return;
}
}
}
PlayerListener.java 文件源码
项目:CrazyLogin
阅读 27
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH)
@Permission("crazylogin.warnsession")
@Localized({ "CRAZYLOGIN.KICKED.SESSION.DUPLICATE", "CRAZYLOGIN.SESSION.DUPLICATEWARN $Name$ $IP$" })
public void PlayerLoginSessionCheck(final PlayerLoginEvent event) {
if (plugin.isForceSingleSessionEnabled()) {
final Player player = event.getPlayer();
if (player != null && player.isOnline()) {
if (plugin.isForceSingleSessionSameIPBypassEnabled()) {
final LoginPlayerData data = plugin.getPlayerData(player);
if (data != null) {
if (event.getAddress().getHostAddress().equals(data.getLatestIP())) {
return;
}
}
}
event.setResult(Result.KICK_OTHER);
event.setKickMessage(plugin.getLocale().getLocaleMessage(player, "KICKED.SESSION.DUPLICATE"));
plugin.broadcastLocaleMessage(true, "crazylogin.warnsession", true, "SESSION.DUPLICATEWARN", player.getName(), event.getAddress().getHostAddress());
plugin.sendLocaleMessage("SESSION.DUPLICATEWARN", player, event.getAddress().getHostAddress(), player.getName());
plugin.getCrazyLogger().log("AccessDenied", "Denied access for player " + player.getName() + " @ " + event.getAddress().getHostAddress() + " because of a player with this name being already online");
return;
}
}
}
PunishmentListener.java 文件源码
项目:NPlugins
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerLogin(final PlayerLoginEvent event) {
if (event.getResult() == Result.ALLOWED) {
final UUID id = event.getPlayer().getUniqueId();
final String playerIp = event.getAddress().getHostAddress();
if (this.punishmentDb.isIdBanned(id)) {
final Punishment ban = this.punishmentDb.get(id.toString(), PunishmentType.BAN);
final String playerBannedMessage;
if (ban.isPermanent()) {
playerBannedMessage = this.plugin.getMessages().get(MessageId.player_deniedPermBanned, ban.getReason())[0];
} else {
playerBannedMessage = this.plugin.getMessages().get(MessageId.player_deniedTempBanned, ban.getReason(), TimeUtil.toString((ban.getEndDate() - System.currentTimeMillis()) / 1000))[0];
}
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, playerBannedMessage);
} else if (this.punishmentDb.isIpBanned(playerIp)) {
final Punishment ipBan = this.punishmentDb.get(playerIp, PunishmentType.IPBAN);
final String ipBannedMessage;
if (ipBan.isPermanent()) {
ipBannedMessage = this.plugin.getMessages().get(MessageId.player_deniedPermIpBanned, ipBan.getReason())[0];
} else {
ipBannedMessage = this.plugin.getMessages().get(MessageId.player_deniedTempIpBanned, ipBan.getReason(), TimeUtil.toString((ipBan.getEndDate() - System.currentTimeMillis()) / 1000))[0];
}
event.disallow(PlayerLoginEvent.Result.KICK_BANNED, ipBannedMessage);
}
}
}
Operator.java 文件源码
项目:Bssentials-Reloaded
阅读 35
收藏 0
点赞 0
评论 0
@EventHandler(
ignoreCancelled = false,
priority = EventPriority.HIGH)
public void operatorFullJoin(PlayerLoginEvent e) {
Player player = e.getPlayer();// Caches players into a local UUID map
if(!Bssentials.uuid_map.containsKey(player.getName())) {
Bssentials.uuid_map.put(player.getName(), player.getUniqueId());
}
if(player.isOp() && e.getResult() == Result.KICK_FULL && !player.isBanned()) {
e.allow();
}
}
AverageJoe.java 文件源码
项目:Bssentials-Reloaded
阅读 55
收藏 0
点赞 0
评论 0
@EventHandler(
ignoreCancelled = false,
priority = EventPriority.HIGH)
public void allowNewPlayer(PlayerLoginEvent event) {
Player player = event.getPlayer();
if(!player.hasPlayedBefore() && event.getResult() == Result.KICK_FULL && !player.isBanned()) {
if(!inst.getConfig().getBoolean("new-players-kick-if-full")) {
event.allow();
}
}
}
DeathBanLoginEventListener.java 文件源码
项目:KingdomFactions
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler
public void onJoin(PlayerLoginEvent e) {
DeathBan ban = DeathBanModule.getInstance().getBan(e.getPlayer().getUniqueId());
if(ban == null){
return;
}
if(ban.handleBan()) {
e.disallow(Result.KICK_OTHER, ban.getMessage());
}
}
PlayerLoginEventListener.java 文件源码
项目:KingdomFactions
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler
public void onLogin(PlayerLoginEvent e) {
KingdomFactionsPlayer p = PlayerModule.getInstance().getPlayer(e.getPlayer());
if(!p.hasPermission(ServerModule.getInstance().getServerMode().getPermission())) {
e.disallow(Result.KICK_OTHER, ChatColor.translateAlternateColorCodes('&', ServerModule.getInstance().getServerMode().getMessage()));
}
}
Events.java 文件源码
项目:NeoHG
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler
private void onLogin(PlayerLoginEvent event) {
if (Game.getState() == State.INVINCIBILITY) {
if (!event.getPlayer().hasPermission(Permissions.JOIN_INVINCIBILITY)) {
event.disallow(Result.KICK_OTHER, Messages.DENY_JOIN_INVINCIBILITY);
return;
}
}
else if (Game.getState() == State.GAME) {
if (!event.getPlayer().hasPermission(Permissions.JOIN_GAME)) {
event.disallow(Result.KICK_OTHER, Messages.DENY_JOIN_INVINCIBILITY);
return;
}
}
}
EffKick.java 文件源码
项目:Skript
阅读 26
收藏 0
点赞 0
评论 0
@Override
protected void execute(final Event e) {
final String r = reason != null ? reason.getSingle(e) : "";
if (r == null)
return;
for (final Player p : players.getArray(e)) {
if (e instanceof PlayerLoginEvent && p.equals(((PlayerLoginEvent) e).getPlayer()) && !Delay.isDelayed(e)) {
((PlayerLoginEvent) e).disallow(Result.KICK_OTHER, r);
} else if (e instanceof PlayerKickEvent && p.equals(((PlayerKickEvent) e).getPlayer()) && !Delay.isDelayed(e)) {
((PlayerKickEvent) e).setLeaveMessage(r);
} else {
p.kickPlayer(r);
}
}
}
LoginListener.java 文件源码
项目:spigot-VPNGuard
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.HIGHEST)
public void onLogin(PlayerLoginEvent event) {
Player player = event.getPlayer();
String ipAddress = event.getAddress().toString().replace("/", "");
if(plugin.file.isInWhitelistCache(ipAddress))
return;
if(plugin.file.isInBlacklistCache(ipAddress)) {
if(this.canBypass(player))
return;
plugin.getLogger().info(PluginMessages.CONSOLE_BLOCKEDLOGIN.replace("%name%", player.getName()).replace("%ip%", ipAddress));
event.setKickMessage(plugin.config.kickMessage.replace("%name%", player.getName()).replace("%ip%", ipAddress).replace("&", "§"));
event.setResult(Result.KICK_OTHER);
return;
}
if(!plugin.file.isInBlacklistCache(ipAddress) && plugin.web.isVPN(ipAddress)) {
plugin.file.addIPToBlacklist(ipAddress);
if(this.canBypass(player))
return;
plugin.getLogger().info(PluginMessages.CONSOLE_BLOCKEDLOGIN.replace("%name%", player.getName()).replace("%ip%", ipAddress));
event.setKickMessage(plugin.config.kickMessage.replace("%name%", player.getName()).replace("%ip%", ipAddress).replace("&", "§"));
event.setResult(Result.KICK_OTHER);
return;
}
plugin.file.addIPToWhitelist(ipAddress);
}
NPCMain.java 文件源码
项目:AnnihilationPro
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.LOW)
public void onLogin(PlayerLoginEvent event)
{
if(isTagged(event.getPlayer().getUniqueId()))
{
Boolean b = taggedPlayers.get(event.getPlayer().getUniqueId()).wasKilled();
if(b == null)
{
event.setResult(Result.KICK_OTHER);
event.setKickMessage(Lang.NPCALIVE.toString());
}
}
}
PlayerLoginListener.java 文件源码
项目:KSlots
阅读 21
收藏 0
点赞 0
评论 0
@EventHandler
public void onLogin(PlayerLoginEvent e){
if(e.getResult().equals(Result.KICK_FULL)){
if(KSlots.enableInfSlots){
e.allow();
}
}
}
Listeners.java 文件源码
项目:ConnectionInfo
阅读 29
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled=false)
public void onPlayerConnect(PlayerLoginEvent event){
if (event.getResult().equals(Result.ALLOWED)){
ci.handle.newConnection(event);
}else{
ci.handle.failedConnection(event);
}
}
EvGame.java 文件源码
项目:Ultra-Hardcore-1.8
阅读 29
收藏 0
点赞 0
评论 0
@EventHandler
public void login(PlayerLoginEvent a) {
if (eA.mC.cFa) {
if (eA.mA.equals(GameStatus.ERROR)) {
if (!a.getPlayer().hasPermission(Permission.ERROR.toString())) {
a.disallow(Result.KICK_OTHER, eA.mC.cFq);
}
return;
} else if (eA.mA.equals(GameStatus.DISABLED) || eA.mA.equals(GameStatus.LOADING)) {
a.disallow(Result.KICK_OTHER, eA.mC.cFr);
} else if (eA.mA.equals(GameStatus.FINISHED)) {
a.disallow(Result.KICK_OTHER, eA.mC.cFs);
}
}
}
PlayerLoginServerEvent.java 文件源码
项目:AceOfSpadesMiniGame
阅读 28
收藏 0
点赞 0
评论 0
@EventHandler
void PlayerLogin (PlayerLoginEvent e){
if(Game.CheckArenaState()== ArenaMode.LOBBY){
if(e.getResult() != Result.KICK_FULL){
if(e.getPlayer().isOnline()){
e.disallow(Result.KICK_OTHER, "Taki nick jest juz na serwerze! Przypadek?!");
return;
}
}
if(e.getResult() == Result.KICK_FULL){
e.disallow(Result.KICK_OTHER, "Serwer jest pelny!");
return;
}
}
if(Game.CheckArenaState()== ArenaMode.INGAME){
if(e.getResult() != Result.KICK_FULL){
if(e.getPlayer().hasPermission("aos.vip")){
//Wlacz mu obserwatora
}
else{
e.disallow(Result.KICK_OTHER, "Na serwerze trwa juz rozgrywka! Aby obserwowac potrzebujesz vipa!");
}
}
if(e.getResult() == Result.KICK_FULL){
e.disallow(Result.KICK_OTHER, "Obserwowac moze tylko vip!");
return;
}
}
}
PlayerListener.java 文件源码
项目:SubWhitelister
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler
public void onPlayerLogin(PlayerLoginEvent e)
{
if(!SubWhitelister.config.getBoolean("enabled")) return;
Player p = e.getPlayer();
if(!p.hasPermission("subwhitelister.exempt"))
{
if(!WhitelistManager.getUsers().contains(p.getName().toLowerCase()))
{
e.disallow(Result.KICK_WHITELIST, "Not on the whitelist.");
}
}
}
BytecraftPlayerListener.java 文件源码
项目:Bytecraft
阅读 23
收藏 0
点赞 0
评论 0
@EventHandler
public void onLogin(PlayerLoginEvent event)
{
try {
plugin.addPlayer(event.getPlayer(), event.getAddress());
} catch (PlayerBannedException e) {
event.disallow(Result.KICK_BANNED, e.getMessage());
}
}
Running.java 文件源码
项目:Scapegoat
阅读 27
收藏 0
点赞 0
评论 0
@Override
@EventHandler
public void onPlayerLogin(PlayerLoginEvent e)
{
super.onPlayerLogin(e);
Player p = e.getPlayer();
if (!p.isOp() && SGOnline.getType(p.getUniqueId()) != PlayerType.SPECTATOR)
e.disallow(Result.KICK_OTHER, "Partie en cours, veuillez r�essayer plus tard ("
+ ScapegoatPlugin.PLAYER_COLOR + SGOnline.getPlayerCount() + ChatColor.RESET + " joueurs restant).");
}
BanListener.java 文件源码
项目:BetterAssociations
阅读 27
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.HIGHEST) // set to highest because this is most important
public void playerBanned(PlayerLoginEvent event){
UUID uuid = event.getPlayer().getUniqueId();
String reason = bm.isBanned(uuid);
if (reason.equals("")) return;
Player p = event.getPlayer();
event.setKickMessage(reason);
event.setResult(Result.KICK_BANNED);
}
EventProcessor.java 文件源码
项目:PexelCore
阅读 50
收藏 0
点赞 0
评论 0
@EventHandler
private void onPlayerLogin(final PlayerLoginEvent event) {
// Check for ban
if (Pexel.getBans().isBanned(event.getPlayer(), Server.THIS_SERVER)) {
event.disallow(
Result.KICK_BANNED,
BanUtils.formatBannedMessage(Pexel.getBans().getBan(
event.getPlayer(), Server.THIS_SERVER)));
}
if (event.getHostname().contains("login"))
Pexel.getAuth().authenticateIp(event.getPlayer(), event.getHostname());
if (event.getPlayer().getName().equalsIgnoreCase("dobrakmato")) {
ParticleAnimation animation = new ParticleAnimation();
double x = 0;
double y = 0;
for (int i = 0; i < 20; i++) {
x = Math.sin(i / 3.14F);
y = Math.cos(i / 3.14F);
Log.info("Generated frame X:" + x + ", Y:" + y);
animation.addFrame(new ParticleFrame(
Arrays.asList(new ParticleFrame.Particle(x, 2.5, y,
ParticleEffect2.HEART))));
}
EntityAnimationPlayer player = new EntityAnimationPlayer(animation,
event.getPlayer(), true);
player.play();
}
}
AntiOverload.java 文件源码
项目:ProtectPlugin
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler(priority = EventPriority.HIGHEST)
public void onLogin(PlayerLoginEvent event) {
if (event.getResult().equals(Result.ALLOWED)) {
int max = this.plugin.getServer().getMaxPlayers();
while (this.plugin.getServer().getOnlinePlayers().length > max) {
randomKick(Bukkit.getOnlinePlayers());
}
}
}
PlayerListener.java 文件源码
项目:CrazyLogin
阅读 31
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOW)
@Localized("CRAZYLOGIN.KICKED.BANNED.UNTIL $BannedUntil$")
public void PlayerLoginBanCheck(final PlayerLoginEvent event) {
final Player player = event.getPlayer();
if (plugin.isTempBanned(event.getAddress().getHostAddress())) {
event.setResult(Result.KICK_OTHER);
event.setKickMessage(plugin.getLocale().getLocaleMessage(player, "KICKED.BANNED.UNTIL", plugin.getTempBannedString(event.getAddress().getHostAddress())));
plugin.getCrazyLogger().log("AccessDenied", "Denied access for player " + player.getName() + " @ " + event.getAddress().getHostAddress() + " because of a temporary ban");
return;
}
}
PlayerListener.java 文件源码
项目:CrazyLogin
阅读 26
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
@Localized("CRAZYLOGIN.KICKED.NAME.INVALIDCHARS")
public void PlayerLoginNameCharCheck(final PlayerLoginEvent event) {
final Player player = event.getPlayer();
if (plugin.checkNameChars(player.getName())) {
return;
}
event.setResult(Result.KICK_OTHER);
event.setKickMessage(plugin.getLocale().getLocaleMessage(player, "KICKED.NAME.INVALIDCHARS"));
plugin.getCrazyLogger().log("AccessDenied", "Denied access for player " + player.getName() + " @ " + event.getAddress().getHostAddress() + " because of invalid chars");
}
PlayerListener.java 文件源码
项目:CrazyLogin
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler(ignoreCancelled = true, priority = EventPriority.NORMAL)
@Localized("CRAZYLOGIN.KICKED.NAME.INVALIDCASE")
public void PlayerLoginNameCaseCheck(final PlayerLoginEvent event) {
final Player player = event.getPlayer();
if (plugin.checkNameCase(player.getName())) {
return;
}
event.setResult(Result.KICK_OTHER);
event.setKickMessage(plugin.getLocale().getLocaleMessage(player, "KICKED.NAME.INVALIDCASE"));
plugin.getCrazyLogger().log("AccessDenied", "Denied access for player " + player.getName() + " @ " + event.getAddress().getHostAddress() + " because of invalid name case");
}