Add addCustomDisguise to DisguiseConfig to easily register own custom disguises

This commit is contained in:
libraryaddict
2019-12-28 13:10:52 +13:00
parent dad91c1075
commit ce1472eaf7
3 changed files with 72 additions and 27 deletions

View File

@@ -1213,7 +1213,10 @@ public class DisguiseUtilities {
return;
}
if (LibsPremium.getPaidInformation() != null && !LibsPremium.getPaidInformation().isLegit()) {
if ((LibsPremium.getPluginInformation() != null && LibsPremium.getPluginInformation().isPremium() &&
!LibsPremium.getPluginInformation().isLegit()) ||
(LibsPremium.getPaidInformation() != null && LibsPremium.getPaidInformation().isLegit() &&
!LibsPremium.getPaidInformation().isLegit())) {
return;
}

View File

@@ -15,4 +15,16 @@ public class DisguiseParseException extends Exception {
public DisguiseParseException(LibsMsg message, String... params) {
super(message.get((Object[]) params));
}
public DisguiseParseException(String message) {
super(message);
}
public DisguiseParseException(String message, Throwable throwable) {
super(message, throwable);
}
public DisguiseParseException(Throwable throwable) {
super(throwable);
}
}