Remove session in ProtocolSupport directly without expiring

This commit is contained in:
games647
2018-03-18 16:22:03 +01:00
parent 3651c4873c
commit 71c1f4f12e
5 changed files with 15 additions and 4 deletions
@@ -64,7 +64,7 @@ public class MessageListener implements Listener {
String playerName = changeMessage.getPlayerName();
boolean isSourceInvoker = changeMessage.isSourceInvoker();
if (changeMessage.isWillEnable()) {
if (changeMessage.shouldEnable()) {
if (playerName.equals(forPlayer.getName()) && plugin.getCore().getConfig().get("premium-warning", true)
&& !core.getPendingConfirms().contains(forPlayer.getUniqueId())) {
String message = core.getMessage("premium-warning");