Merge pull request #3396 from kdkasad/fix/skinsrestorer-api

Fix SkinsRestorer API integration
This commit is contained in:
mikeprimm 2021-06-21 07:35:11 -05:00 committed by GitHub
commit bd3b04224a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ dependencies {
compile 'me.lucko.luckperms:luckperms-api:4.3'
compile 'net.luckperms:api:5.0'
compile('com.github.MilkBowl:VaultAPI:1.7') { transitive = false }
compileOnly 'net.skinsrestorer:skinsrestorer:14.0.0-SNAPSHOT@jar'
compileOnly 'net.skinsrestorer:skinsrestorer:14.1.0-SNAPSHOT@jar'
compile project(":dynmap-api")
compile project(path: ":DynmapCore", configuration: "shadow")
compile group: 'ru.tehkode', name: 'PermissionsEx', version: '1.19.1'

View File

@ -917,10 +917,10 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
if (skinsRestorer == null) {
Log.warning("SkinsRestorer integration can't be enabled because SkinsRestorer not installed");
} else {
skinUrlProvider = new SkinsRestorerSkinUrlProvider(skinsRestorer);
skinUrlProvider = new SkinsRestorerSkinUrlProvider();
Log.info("SkinsRestorer API v14 integration enabled");
}
}catch(NoClassDefFoundError e) {
} catch(NoClassDefFoundError e) {
Log.warning("You are using unsupported version of SkinsRestorer. Use v14 or newer.");
Log.warning("Disabled SkinsRestorer integration for this session");
}

View File

@ -17,9 +17,9 @@ public class SkinsRestorerSkinUrlProvider implements SkinUrlProvider {
private JSONParser mJsonParser;
private SkinsRestorerAPI mSkinsRestorerApi;
SkinsRestorerSkinUrlProvider(SkinsRestorer skinsRestorer) {
SkinsRestorerSkinUrlProvider() {
mJsonParser = new JSONParser();
mSkinsRestorerApi = skinsRestorer.getSkinsRestorerBukkitAPI();
mSkinsRestorerApi = SkinsRestorerAPI.getApi();
}
@Override