mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Add pi rate checking for main plugin
This commit is contained in:
parent
0889a2a000
commit
c65ff32e68
1 changed files with 7 additions and 4 deletions
|
@ -56,8 +56,9 @@ public class LibsDisguises extends JavaPlugin {
|
||||||
LibsPremium.check(getDescription().getVersion(), getFile());
|
LibsPremium.check(getDescription().getVersion(), getFile());
|
||||||
|
|
||||||
if (!LibsPremium.isPremium()) {
|
if (!LibsPremium.isPremium()) {
|
||||||
getLogger().info("You are running the free version, commands limited to non-players and operators. (Console, Command " +
|
getLogger()
|
||||||
"Blocks, Admins)");
|
.info("You are running the free version, commands limited to non-players and operators. (Console," +
|
||||||
|
" Command " + "Blocks, Admins)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ReflectionManager.getMinecraftVersion().startsWith("1.14.4")) {
|
if (!ReflectionManager.getMinecraftVersion().startsWith("1.14.4")) {
|
||||||
|
@ -240,8 +241,10 @@ public class LibsDisguises extends JavaPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invalidate invalid distribution
|
// Invalidate invalid distribution
|
||||||
if (LibsPremium.isPremium() && LibsPremium.getPaidInformation() != null &&
|
if (LibsPremium.isPremium() &&
|
||||||
!LibsPremium.getPaidInformation().isLegit()) {
|
((LibsPremium.getPaidInformation() != null && !LibsPremium.getPaidInformation().isLegit()) ||
|
||||||
|
(LibsPremium.getPluginInformation() != null &&
|
||||||
|
LibsPremium.getPluginInformation().isLegit()))) {
|
||||||
throw new IllegalStateException(
|
throw new IllegalStateException(
|
||||||
"Error while checking pi rate on startup! Please re-download the jar from SpigotMC before " +
|
"Error while checking pi rate on startup! Please re-download the jar from SpigotMC before " +
|
||||||
"reporting this error!");
|
"reporting this error!");
|
||||||
|
|
Loading…
Reference in a new issue