Fix MC-158900
This commit is contained in:
@@ -558,9 +558,10 @@ public abstract class PlayerList {
|
|||||||
Player player = entity.getBukkitEntity();
|
Player player = entity.getBukkitEntity();
|
||||||
PlayerLoginEvent event = new PlayerLoginEvent(player, hostname, ((java.net.InetSocketAddress) socketaddress).getAddress(), ((java.net.InetSocketAddress) loginlistener.networkManager.getRawAddress()).getAddress());
|
PlayerLoginEvent event = new PlayerLoginEvent(player, hostname, ((java.net.InetSocketAddress) socketaddress).getAddress(), ((java.net.InetSocketAddress) loginlistener.networkManager.getRawAddress()).getAddress());
|
||||||
String s;
|
String s;
|
||||||
|
// NeonPaper start - Fix MC-158900
|
||||||
if (getProfileBans().isBanned(gameprofile) && !getProfileBans().get(gameprofile).hasExpired()) {
|
GameProfileBanEntry gameprofilebanentry;
|
||||||
GameProfileBanEntry gameprofilebanentry = this.k.get(gameprofile);
|
if (getProfileBans().isBanned(gameprofile) && (gameprofilebanentry = getProfileBans().get(gameprofile)) != null) {
|
||||||
|
// NeonPaper end
|
||||||
|
|
||||||
s = LocaleI18n.a(AkarinGlobalConfig.messageBan,
|
s = LocaleI18n.a(AkarinGlobalConfig.messageBan,
|
||||||
gameprofilebanentry.getReason().equals(Akari.EMPTY_STRING) ? Akari.EMPTY_STRING : AkarinGlobalConfig.messageBanReason + gameprofilebanentry.getReason(),
|
gameprofilebanentry.getReason().equals(Akari.EMPTY_STRING) ? Akari.EMPTY_STRING : AkarinGlobalConfig.messageBanReason + gameprofilebanentry.getReason(),
|
||||||
|
|||||||
Reference in New Issue
Block a user