diff --git a/plugin.yml b/plugin.yml index 7237827..2f37aaa 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,6 +2,20 @@ name: zKoth author: Maxlego08 main: fr.maxlego08.zkoth.ZKothPlugin version: 2.1.0.8 -softdepend: [PlaceholderAPI, Guilds, Factions, FactionsX, SuperiorSkyblock2, LegacyFactions, FeatherBoard, TAB, TitleManager, UltimateFactions, Multiverse-Core, SternalBoard, SimpleClan] +softdepend: +- PlaceholderAPI +- Guilds +- Factions +- FactionsX +- SuperiorSkyblock2 +- LegacyFactions +- FeatherBoard +- TAB +- TitleManager +- UltimateFactions +- Multiverse-Core +- SternalBoard +- SimpleClan +- SternalBoard commands: api-version: 1.13 \ No newline at end of file diff --git a/src/fr/maxlego08/zkoth/scoreboard/implementations/SternalBoardHook.java b/src/fr/maxlego08/zkoth/scoreboard/implementations/SternalBoardHook.java index 85fb6dd..22dc130 100644 --- a/src/fr/maxlego08/zkoth/scoreboard/implementations/SternalBoardHook.java +++ b/src/fr/maxlego08/zkoth/scoreboard/implementations/SternalBoardHook.java @@ -5,7 +5,7 @@ import java.util.function.Consumer; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; -import com.xism4.sternalboard.Structure; +import com.xism4.sternalboard.SternalBoard; import com.xism4.sternalboard.managers.ScoreboardManager; import fr.maxlego08.zkoth.api.Scoreboard; @@ -18,8 +18,9 @@ public class SternalBoardHook implements Scoreboard { * @param manager */ public SternalBoardHook(Plugin plugin) { - super(); - this.manager = ((Structure) plugin).getScoreboardManager(); + super(); + + this.manager = SternalBoard.getInstance().getScoreboardManager(); } @Override