Add small note to config yml & corrected a check
This commit is contained in:
@@ -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]+");
|
||||
}
|
||||
|
Reference in New Issue
Block a user