From 81a9811c9b0bed794253e0e5a053e880a728d77f Mon Sep 17 00:00:00 2001 From: Xephi Date: Wed, 30 Dec 2015 15:11:17 +0100 Subject: [PATCH] Revert "Add a way to handle a player logout in playerquit into bungeecord" This reverts commit a3a3907586540d834297dc054bb3d1dfc7855548. --- .../quit/ProcessSyncronousPlayerQuit.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/fr/xephi/authme/process/quit/ProcessSyncronousPlayerQuit.java b/src/main/java/fr/xephi/authme/process/quit/ProcessSyncronousPlayerQuit.java index 94257a146..3193ac498 100644 --- a/src/main/java/fr/xephi/authme/process/quit/ProcessSyncronousPlayerQuit.java +++ b/src/main/java/fr/xephi/authme/process/quit/ProcessSyncronousPlayerQuit.java @@ -1,13 +1,8 @@ package fr.xephi.authme.process.quit; import fr.xephi.authme.AuthMe; -import fr.xephi.authme.settings.Settings; - import org.bukkit.entity.Player; -import com.google.common.io.ByteArrayDataOutput; -import com.google.common.io.ByteStreams; - /** */ public class ProcessSyncronousPlayerQuit implements Runnable { @@ -33,15 +28,6 @@ public class ProcessSyncronousPlayerQuit implements Runnable { this.needToChange = needToChange; } - protected void sendBungeeMessage() { - ByteArrayDataOutput out = ByteStreams.newDataOutput(); - out.writeUTF("Forward"); - out.writeUTF("ALL"); - out.writeUTF("AuthMe"); - out.writeUTF("logout;" + player.getName().toLowerCase()); - player.sendPluginMessage(plugin, "BungeeCord", out.toByteArray()); - } - /** * Method run. * @@ -56,7 +42,5 @@ public class ProcessSyncronousPlayerQuit implements Runnable { player.getVehicle().eject(); } catch (Exception ignored) { } - if (!Settings.isSessionsEnabled && Settings.bungee) - sendBungeeMessage(); } }