Merge pull request #3990 from Thorinwasher/v3.0

Disable the plugin if on the wrong platform
This commit is contained in:
mikeprimm 2023-08-29 13:14:01 -05:00 committed by GitHub
commit 31d1b400f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -914,6 +914,7 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
}
if (helper == null) {
Log.info("Dynmap is disabled (unsupported platform)");
this.setEnabled(false);
return;
}
PluginDescriptionFile pdfFile = this.getDescription();