mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 20:58:40 +01:00
Merge pull request #3396 from kdkasad/fix/skinsrestorer-api
Fix SkinsRestorer API integration
This commit is contained in:
commit
bd3b04224a
@ -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'
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user