Remove session in ProtocolSupport directly without expiring

This commit is contained in:
games647 committed 2018-03-18 16:22:03 +01:00
1 parent 3651c4873c
commit 71c1f4f12e
5 files changed
+15 -4

No files matched your search

@@ -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");