From 76a41c4c6cecdf92b3abbf63bdc1d9d76031a245 Mon Sep 17 00:00:00 2001 From: Infinityy <120841985+Inf1nityy@users.noreply.github.com> Date: Sat, 26 Oct 2024 18:41:42 +0200 Subject: [PATCH] make your code work, you're welcome --- src/main/java/com/nexia/base/player/PlayerDataManager.java | 4 ++++ src/main/java/com/nexia/core/utilities/time/ServerTime.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/com/nexia/base/player/PlayerDataManager.java b/src/main/java/com/nexia/base/player/PlayerDataManager.java index 3b72aa2c..ebeb64a1 100644 --- a/src/main/java/com/nexia/base/player/PlayerDataManager.java +++ b/src/main/java/com/nexia/base/player/PlayerDataManager.java @@ -13,6 +13,7 @@ import com.nexia.minigames.games.base.player.WLKSavedPlayerData; import com.nexia.minigames.games.bedwars.util.player.BedwarsPlayerData; import com.nexia.minigames.games.bedwars.util.player.BedwarsSavedPlayerData; +import com.nexia.minigames.games.bridge.util.player.BridgePlayerData; import com.nexia.minigames.games.duels.util.player.DuelsPlayerData; import com.nexia.minigames.games.duels.util.player.DuelsSavedPlayerData; import com.nexia.minigames.games.football.util.player.FootballPlayerData; @@ -76,6 +77,9 @@ public static void init() { // <----------- SkyWars ---------------> new PlayerDataManager(NexiaCore.SKYWARS_DATA_MANAGER, "skywars", WLKSavedPlayerData.class, SkywarsPlayerData.class); + + // <----------- Bridge ---------------> + new PlayerDataManager(NexiaCore.BRIDGE_DATA_MANAGER, "bridge", WLKSavedPlayerData.class, BridgePlayerData.class); } public PlayerData get(NexiaPlayer player) { diff --git a/src/main/java/com/nexia/core/utilities/time/ServerTime.java b/src/main/java/com/nexia/core/utilities/time/ServerTime.java index 1739b031..6d1e4bff 100644 --- a/src/main/java/com/nexia/core/utilities/time/ServerTime.java +++ b/src/main/java/com/nexia/core/utilities/time/ServerTime.java @@ -19,6 +19,7 @@ import com.nexia.minigames.games.bedwars.areas.BwAreas; import com.nexia.minigames.games.bedwars.areas.BwDimension; import com.nexia.minigames.games.bedwars.shop.BwLoadShop; +import com.nexia.minigames.games.bridge.BridgeGame; import com.nexia.minigames.games.duels.DuelGameHandler; import com.nexia.minigames.games.duels.DuelsGame; import com.nexia.minigames.games.duels.team.TeamDuelsGame; @@ -77,6 +78,7 @@ public static void firstTick(MinecraftServer server) { SkywarsGame.firstTick(); OitcGame.firstTick(); + BridgeGame.firstTick(); DuelGameHandler.starting(); } @@ -103,6 +105,7 @@ public static void everyTick() { SkyFfaBlocks.tick(); FootballGame.tick(); OitcGame.tick(); + BridgeGame.tick(); if (totalTickCount % 5 == 0) { FfaClassicUtil.INSTANCE.fiveTick(); @@ -126,6 +129,7 @@ static void everySecond() { OitcGame.second(); FootballGame.second(); SkywarsGame.second(); + BridgeGame.second(); try { for (DuelsGame game : DuelGameHandler.duelsGames) { if (game == null) return;