Add small note to config yml & corrected a check

This commit is contained in:
libraryaddict
2019-11-14 00:38:58 +13:00
parent 92a85194fb
commit aad7001cbd
4 changed files with 24 additions and 6 deletions

View File

@@ -2,6 +2,9 @@ package me.libraryaddict.disguise.utilities.plugin;
import me.libraryaddict.disguise.utilities.LibsPremium;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by libraryaddict on 20/06/2019.
*/
@@ -53,6 +56,16 @@ public class PluginInformation {
return buildDate;
}
public Date getParsedBuildDate() {
try {
return new SimpleDateFormat("dd/MM/yyyy HH:mm").parse(getBuildDate());
}
catch (Exception ex) {
}
return null;
}
public boolean isLegit() {
return getUserID().matches("[0-9]+") && getResourceID().equals("32453") && getDownloadID().matches("-?[0-9]+");
}