🐛 Fix SternalBoard

This commit is contained in:
Maxlego08 2022-09-19 10:52:51 +02:00
parent fd898140cd
commit 89f41c0809
2 changed files with 19 additions and 4 deletions

View File

@ -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

View File

@ -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