Merge branch 'portedplayerschange' of github.com:creeper123123321/ViaVersion into portedplayerschange

This commit is contained in:
creeper123123321 2020-04-15 11:36:01 -03:00
commit 18034a334c
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ public class SpongePlugin implements ViaPlatform<Player> {
@Inject
private PluginContainer container;
@Inject
@DefaultConfig(sharedRoot = true)
@DefaultConfig(sharedRoot = false)
private File spongeConfig;
private final ViaConnectionManager connectionManager = new ViaConnectionManager();
@ -59,7 +59,7 @@ public class SpongePlugin implements ViaPlatform<Player> {
// Setup Logger
logger = new LoggerWrapper(container.getLogger());
// Setup Plugin
conf = new SpongeViaConfig(container, spongeConfig);
conf = new SpongeViaConfig(container, spongeConfig.getParentFile());
SpongeCommandHandler commandHandler = new SpongeCommandHandler();
game.getCommandManager().register(this, commandHandler, "viaversion", "viaver", "vvsponge");
logger.info("ViaVersion " + getPluginVersion() + " is now loaded!");
@ -196,7 +196,7 @@ public class SpongePlugin implements ViaPlatform<Player> {
@Override
public File getDataFolder() {
return spongeConfig;
return spongeConfig.getParentFile();
}
@Override