Initial Velocity support
This commit is contained in:
parent
4ffa7f1b99
commit
4390dc2c56
36 changed files with 1455 additions and 41 deletions
|
|
@ -9,7 +9,7 @@ repositories {
|
|||
|
||||
dependencies {
|
||||
implementation 'co.aikar:acf-bungee:0.5.0-SNAPSHOT'
|
||||
implementation 'org.bstats:bstats-bungeecord:1.8'
|
||||
implementation 'org.bstats:bstats-bungeecord:2.2.1'
|
||||
implementation project(":Common")
|
||||
compileOnly 'net.md-5:bungeecord-api:1.16-R0.5-SNAPSHOT'
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ processResources {
|
|||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats.bungeecord', dependencyDir + '.bstats'
|
||||
relocate 'org.bstats', dependencyDir + '.bstats'
|
||||
relocate 'co.aikar.commands', dependencyDir + '.acf'
|
||||
relocate 'co.aikar.locales', dependencyDir + '.locales'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import java.io.File;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import net.frankheijden.serverutils.bungee.ServerUtils;
|
||||
import net.frankheijden.serverutils.common.config.YamlConfig;
|
||||
import net.frankheijden.serverutils.common.config.ServerUtilsConfig;
|
||||
import net.frankheijden.serverutils.common.providers.ResourceProvider;
|
||||
|
||||
public class BungeeResourceProvider implements ResourceProvider {
|
||||
|
|
@ -21,12 +21,12 @@ public class BungeeResourceProvider implements ResourceProvider {
|
|||
}
|
||||
|
||||
@Override
|
||||
public YamlConfig load(InputStream is) {
|
||||
public ServerUtilsConfig load(InputStream is) {
|
||||
return new BungeeYamlConfig(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YamlConfig load(File file) {
|
||||
public ServerUtilsConfig load(File file) {
|
||||
try {
|
||||
return new BungeeYamlConfig(file);
|
||||
} catch (IOException ex) {
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ import java.util.Collection;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import net.frankheijden.serverutils.common.config.YamlConfig;
|
||||
import net.frankheijden.serverutils.common.config.ServerUtilsConfig;
|
||||
import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.config.ConfigurationProvider;
|
||||
import net.md_5.bungee.config.YamlConfiguration;
|
||||
|
||||
public class BungeeYamlConfig implements YamlConfig {
|
||||
public class BungeeYamlConfig implements ServerUtilsConfig {
|
||||
|
||||
private static final ConfigurationProvider provider = ConfigurationProvider.getProvider(YamlConfiguration.class);
|
||||
private final Configuration config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue