fix: Spigot 1.17 error message (#260)

* chore(ci): Add renovate

* fix: 1.17 launch non-critical error

Fixes #259
This commit is contained in:
Sekwah 2021-06-27 18:53:43 +01:00 committed by GitHub
parent bfea4b2836
commit 7c78f414ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View File

@ -4,4 +4,4 @@ org.gradle.caching=true
github=https://github.com/sekwah41/Advanced-Portals
curse_project_id=86001
version=0.6.1
version=0.6.0

5
renovate.json Normal file
View File

@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

View File

@ -139,7 +139,8 @@ public class AdvancedPortalsPlugin extends JavaPlugin {
getLogger().info( "Bungee detected. Enabling proxy features." );
return true;
}
} catch(NullPointerException e) {
} catch(NoSuchMethodError | NullPointerException e) {
getLogger().info("BungeeCord config not detected, ignoring settings");
}
// Will be valid if paperspigot is being used. Otherwise catch.
@ -150,7 +151,8 @@ public class AdvancedPortalsPlugin extends JavaPlugin {
getLogger().info( "Modern forwarding detected. Enabling proxy features." );
return true;
}
} catch(NullPointerException e) {
} catch(NoSuchMethodError | NullPointerException e) {
getLogger().info("Paper config not detected, ignoring paper settings");
}
getLogger().warning( "Proxy features disabled for Advanced Portals as bungee isn't enabled on the server (spigot.yml) " +