perf: 简化代码

This commit is contained in:
2024-03-17 01:21:08 +08:00
parent ade9a1094a
commit 134454f94f
4 changed files with 20 additions and 18 deletions

View File

@@ -2,6 +2,7 @@ package cn.hamster3.mc.plugin.ball.bungee.api;
import cn.hamster3.mc.plugin.ball.bungee.HamsterBallPlugin;
import cn.hamster3.mc.plugin.ball.common.api.BallAPI;
import cn.hamster3.mc.plugin.ball.common.entity.BallServerType;
import cn.hamster3.mc.plugin.core.common.config.ConfigSection;
import cn.hamster3.mc.plugin.core.common.config.YamlConfig;
import org.jetbrains.annotations.NotNull;
@@ -13,7 +14,7 @@ import java.util.logging.Logger;
public class BallBungeeCordAPI extends BallAPI {
public BallBungeeCordAPI(@NotNull ConfigSection config) {
super(config);
super(config, BallServerType.PROXY);
}
public static BallBungeeCordAPI getInstance() {