Revert "Add a way to handle a player logout in playerquit into bungeecord"

This reverts commit a3a3907586.
This commit is contained in:
Xephi 2015-12-30 15:11:17 +01:00
parent a3a3907586
commit 81a9811c9b

View File

@ -1,13 +1,8 @@
package fr.xephi.authme.process.quit; package fr.xephi.authme.process.quit;
import fr.xephi.authme.AuthMe; import fr.xephi.authme.AuthMe;
import fr.xephi.authme.settings.Settings;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
/** /**
*/ */
public class ProcessSyncronousPlayerQuit implements Runnable { public class ProcessSyncronousPlayerQuit implements Runnable {
@ -33,15 +28,6 @@ public class ProcessSyncronousPlayerQuit implements Runnable {
this.needToChange = needToChange; 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. * Method run.
* *
@ -56,7 +42,5 @@ public class ProcessSyncronousPlayerQuit implements Runnable {
player.getVehicle().eject(); player.getVehicle().eject();
} catch (Exception ignored) { } catch (Exception ignored) {
} }
if (!Settings.isSessionsEnabled && Settings.bungee)
sendBungeeMessage();
} }
} }