mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-24 12:25:39 +01:00
Update AspirinViaConfig implementation
This commit is contained in:
parent
4c441f8793
commit
82dd41fa9d
@ -4,22 +4,20 @@ import com.viaversion.aas.platform.AspirinPlatform;
|
|||||||
import com.viaversion.viaversion.configuration.AbstractViaConfig;
|
import com.viaversion.viaversion.configuration.AbstractViaConfig;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.URL;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class AspirinViaConfig extends AbstractViaConfig {
|
public class AspirinViaConfig extends AbstractViaConfig {
|
||||||
{
|
|
||||||
reload();
|
protected final List<String> UNSUPPORTED = new ArrayList<>();
|
||||||
}
|
|
||||||
|
|
||||||
public AspirinViaConfig() {
|
public AspirinViaConfig() {
|
||||||
super(new File("config/viaversion.yml"), AspirinPlatform.INSTANCE.getLogger());
|
super(new File("config/viaversion.yml"), AspirinPlatform.INSTANCE.getLogger());
|
||||||
}
|
UNSUPPORTED.addAll(BUKKIT_ONLY_OPTIONS);
|
||||||
|
UNSUPPORTED.addAll(VELOCITY_ONLY_OPTIONS);
|
||||||
|
|
||||||
@Override
|
reload();
|
||||||
public URL getDefaultConfigURL() {
|
|
||||||
return getClass().getClassLoader().getResource("assets/viaversion/config.yml");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -29,12 +27,6 @@ public class AspirinViaConfig extends AbstractViaConfig {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<String> getUnsupportedOptions() {
|
public List<String> getUnsupportedOptions() {
|
||||||
return List.of(
|
return UNSUPPORTED;
|
||||||
"anti-xray-patch", "quick-move-action-fix", "nms-player-ticking",
|
|
||||||
"item-cache", "velocity-ping-interval", "velocity-ping-save", "velocity-servers",
|
|
||||||
"blockconnection-method", "change-1_9-hitbox", "change-1_14-hitbox", "block-protocols",
|
|
||||||
"block-disconnect-msg", "reload-disconnect-msg", "max-pps", "max-pps-kick-msg", "tracking-period",
|
|
||||||
"tracking-warning-pps", "tracking-max-warnings", "tracking-max-kick-msg", "use-new-deathmessages"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user