mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-04 13:54:35 +01:00
Handle when PE plugin is missing
This commit is contained in:
parent
31fdb53f01
commit
30a7a848fe
@ -407,7 +407,8 @@ public class LibsDisguises extends JavaPlugin {
|
||||
private void startOutdatedPacketevents() {
|
||||
if (!DisguiseConfig.isNeverUpdatePacketEvents() && PacketEventsUpdater.isPacketEventsOutdated()) {
|
||||
String requiredPacketEvents = PacketEventsUpdater.getMinimumPacketEventsVersion();
|
||||
String version = Bukkit.getPluginManager().getPlugin("packetevents").getDescription().getVersion();
|
||||
Plugin plugin = Bukkit.getPluginManager().getPlugin("packetevents");
|
||||
String version = plugin == null ? "[PacketEvents Plugin Missing]" : plugin.getDescription().getVersion();
|
||||
|
||||
BukkitRunnable runnable = createPacketEventsOutdatedRunnable(version, requiredPacketEvents);
|
||||
runnable.run();
|
||||
|
Loading…
Reference in New Issue
Block a user