mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-19 15:17:56 +01:00
Revert "Add a way to handle a player logout in playerquit into bungeecord"
This reverts commit a3a3907586
.
This commit is contained in:
parent
a3a3907586
commit
81a9811c9b
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user