This commit is contained in:
libraryaddict 2019-07-26 13:28:28 +12:00
parent 18f1886e72
commit eba4ba8326
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
if (!((PlayerDisguise) disguise).isDisplayedInTab()) { if (!((PlayerDisguise) disguise).isDisplayedInTab()) {
if (LibsPremium.getPaidInformation() == null || if (LibsPremium.getPaidInformation() == null ||
LibsPremium.getPaidInformation().getBuildNumber().matches("[0-9]+")) { LibsPremium.getPaidInformation().getBuildNumber().matches("#[0-9]+")) {
packets.addDelayedPacket(deleteTab, DisguiseConfig.getPlayerDisguisesTablistExpires()); packets.addDelayedPacket(deleteTab, DisguiseConfig.getPlayerDisguisesTablistExpires());
} }
} }

View File

@ -114,7 +114,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
if (event.getPacketType() == Server.ENTITY_METADATA) { if (event.getPacketType() == Server.ENTITY_METADATA) {
if (!LibsPremium.getPluginInformation().isPremium() || LibsPremium.getPaidInformation() != null || if (!LibsPremium.getPluginInformation().isPremium() || LibsPremium.getPaidInformation() != null ||
LibsPremium.getPluginInformation().getBuildNumber().matches("[0-9]+")) { LibsPremium.getPluginInformation().getBuildNumber().matches("#[0-9]+")) {
event.setPacket(packet = packet.deepClone()); event.setPacket(packet = packet.deepClone());
} }