mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-01-26 09:31:29 +01:00
cleanup
This commit is contained in:
parent
33d897ea37
commit
06e098ab39
@ -192,9 +192,6 @@ public class AuthMe extends JavaPlugin {
|
||||
// Check Multiverse
|
||||
checkMultiverse();
|
||||
|
||||
// Check PerWorldInventories Version
|
||||
checkPerWorldInventories();
|
||||
|
||||
// Check ChestShop
|
||||
checkChestShop();
|
||||
|
||||
@ -456,25 +453,6 @@ public class AuthMe extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
// Check PerWorldInventories version
|
||||
public void checkPerWorldInventories() {
|
||||
if (server.getPluginManager().isPluginEnabled("PerWorldInventories")) {
|
||||
double version = 0;
|
||||
String ver = server.getPluginManager().getPlugin("PerWorldInventories").getDescription().getVersion();
|
||||
try {
|
||||
version = Double.valueOf(ver.split(" ")[0]);
|
||||
} catch (NumberFormatException nfe) {
|
||||
try {
|
||||
version = Double.valueOf(ver.split("t")[0]);
|
||||
} catch (NumberFormatException ignore) {
|
||||
}
|
||||
}
|
||||
if (version < 1.57) {
|
||||
ConsoleLogger.showError("Please Update your PerWorldInventories version! INVENTORY WIPE may occur!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get the Multiverse plugin
|
||||
public void checkMultiverse() {
|
||||
if (Settings.multiverse && server.getPluginManager().isPluginEnabled("Multiverse-Core")) {
|
||||
|
Loading…
Reference in New Issue
Block a user