From 39a3d7dde127e5c0224c2175fda54fef6ddd590f Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 16 Apr 2014 11:14:49 +1000 Subject: [PATCH] Correct Ban Expiration --- .../0142-Correct-Ban-Expiration.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch diff --git a/CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch b/CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch new file mode 100644 index 0000000000..931ea3deb2 --- /dev/null +++ b/CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch @@ -0,0 +1,22 @@ +From 1ce14fb3e4bb416b32fc7dfd81d70289525843a2 Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Wed, 16 Apr 2014 11:14:38 +1000 +Subject: [PATCH] Correct Ban Expiration + + +diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java +index bbed3f4..77266d7 100644 +--- a/src/main/java/net/minecraft/server/PlayerList.java ++++ b/src/main/java/net/minecraft/server/PlayerList.java +@@ -362,7 +362,7 @@ public abstract class PlayerList { + } + + // return s; +- event.disallow(PlayerLoginEvent.Result.KICK_BANNED, s); ++ if (!gameprofilebanentry.e()) event.disallow(PlayerLoginEvent.Result.KICK_BANNED, s); // Spigot + } else if (!this.isWhitelisted(gameprofile)) { + // return "You are not white-listed on this server!"; + event.disallow(PlayerLoginEvent.Result.KICK_WHITELIST, org.spigotmc.SpigotConfig.whitelistMessage); // Spigot +-- +1.8.3.2 +