Initial Velocity support
This commit is contained in:
parent
4ffa7f1b99
commit
4390dc2c56
36 changed files with 1455 additions and 41 deletions
|
|
@ -3,7 +3,7 @@ package net.frankheijden.serverutils.bukkit.entities;
|
|||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import net.frankheijden.serverutils.bukkit.ServerUtils;
|
||||
import net.frankheijden.serverutils.common.config.YamlConfig;
|
||||
import net.frankheijden.serverutils.common.config.ServerUtilsConfig;
|
||||
import net.frankheijden.serverutils.common.providers.ResourceProvider;
|
||||
|
||||
public class BukkitResourceProvider implements ResourceProvider {
|
||||
|
|
@ -20,12 +20,12 @@ public class BukkitResourceProvider implements ResourceProvider {
|
|||
}
|
||||
|
||||
@Override
|
||||
public YamlConfig load(InputStream is) {
|
||||
public ServerUtilsConfig load(InputStream is) {
|
||||
return new BukkitYamlConfig(is);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YamlConfig load(File file) {
|
||||
public ServerUtilsConfig load(File file) {
|
||||
return new BukkitYamlConfig(file);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ 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 org.bukkit.configuration.MemorySection;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class BukkitYamlConfig implements YamlConfig {
|
||||
public class BukkitYamlConfig implements ServerUtilsConfig {
|
||||
|
||||
private final MemorySection config;
|
||||
private File file = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue