Lets Play Quake v.1.0

This commit is contained in:
Bl4ckSkull666 2016-08-20 21:37:59 +02:00
parent 8a2636cf46
commit 0c214214c3

View File

@ -301,8 +301,7 @@ public class PlayerListener implements Listener {
@Override @Override
public void run() { public void run() {
try { try {
if(Quake.getPlugin().getConfig().getInt("mc-version", 1002) >= 1000 && Quake.getPlugin().getConfig().getInt("mc-version", 1002) <= 1002) ((CraftPlayer)player).getHandle().playerConnection.a(new PacketPlayInClientCommand(EnumClientCommand.PERFORM_RESPAWN));
((CraftPlayer)player).getHandle().playerConnection.a(new PacketPlayInClientCommand(EnumClientCommand.PERFORM_RESPAWN));
} catch (SecurityException | IllegalArgumentException t) { } catch (SecurityException | IllegalArgumentException t) {
t.printStackTrace(); t.printStackTrace();
} }