Skip to content

Commit

Permalink
make your code work, you're welcome
Browse files Browse the repository at this point in the history
  • Loading branch information
Inf1nityy committed Oct 26, 2024
1 parent b477fcc commit 76a41c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/nexia/base/player/PlayerDataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/nexia/core/utilities/time/ServerTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -77,6 +78,7 @@ public static void firstTick(MinecraftServer server) {

SkywarsGame.firstTick();
OitcGame.firstTick();
BridgeGame.firstTick();
DuelGameHandler.starting();
}

Expand All @@ -103,6 +105,7 @@ public static void everyTick() {
SkyFfaBlocks.tick();
FootballGame.tick();
OitcGame.tick();
BridgeGame.tick();

if (totalTickCount % 5 == 0) {
FfaClassicUtil.INSTANCE.fiveTick();
Expand All @@ -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;
Expand Down

0 comments on commit 76a41c4

Please sign in to comment.