mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-10 01:28:19 +02:00
Fixed update checker, changed listener prioty to highest
This commit is contained in:
parent
3e2f95f68b
commit
174d297445
@ -50,7 +50,7 @@ public class LibsDisguises extends JavaPlugin implements Listener {
|
|||||||
DisguiseAPI.init(this);
|
DisguiseAPI.init(this);
|
||||||
DisguiseAPI.enableSounds(true);
|
DisguiseAPI.enableSounds(true);
|
||||||
final ProtocolManager manager = ProtocolLibrary.getProtocolManager();
|
final ProtocolManager manager = ProtocolLibrary.getProtocolManager();
|
||||||
manager.addPacketListener(new PacketAdapter(this, ConnectionSide.SERVER_SIDE, ListenerPriority.NORMAL,
|
manager.addPacketListener(new PacketAdapter(this, ConnectionSide.SERVER_SIDE, ListenerPriority.HIGHEST,
|
||||||
Packets.Server.NAMED_ENTITY_SPAWN, Packets.Server.ENTITY_METADATA, Packets.Server.ARM_ANIMATION,
|
Packets.Server.NAMED_ENTITY_SPAWN, Packets.Server.ENTITY_METADATA, Packets.Server.ARM_ANIMATION,
|
||||||
Packets.Server.REL_ENTITY_MOVE_LOOK, Packets.Server.ENTITY_LOOK, Packets.Server.ENTITY_TELEPORT,
|
Packets.Server.REL_ENTITY_MOVE_LOOK, Packets.Server.ENTITY_LOOK, Packets.Server.ENTITY_TELEPORT,
|
||||||
Packets.Server.ADD_EXP_ORB, Packets.Server.VEHICLE_SPAWN, Packets.Server.MOB_SPAWN,
|
Packets.Server.ADD_EXP_ORB, Packets.Server.VEHICLE_SPAWN, Packets.Server.MOB_SPAWN,
|
||||||
|
@ -17,7 +17,7 @@ public class UpdateChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void checkUpdate(String currentVersion) throws Exception {
|
public void checkUpdate(String currentVersion) throws Exception {
|
||||||
String version = getVersion("98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4", 55);
|
String version = getVersion("98BE0FE67F88AB82B4C197FAF1DC3B69206EFDCC4D3B80FC83A00037510B99B4", 81);
|
||||||
if (checkHigher(currentVersion, version))
|
if (checkHigher(currentVersion, version))
|
||||||
latestVersion = version;
|
latestVersion = version;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user