mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
Correct Ban Expiration
This commit is contained in:
parent
2c68786295
commit
39a3d7dde1
22
CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch
Normal file
22
CraftBukkit-Patches/0142-Correct-Ban-Expiration.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From 1ce14fb3e4bb416b32fc7dfd81d70289525843a2 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user