Declare the boundaries of the minigame, player class
Use the boundaries, client classCode:public boolean MinigameArea() { if (heightLevel == 2 || heightLevel == 0 || heightLevel == 1) { if (absX >= #### && absX <= #### && absY >= #### && absY <= ####) { return true; } } return false; }
And you'd need to import your minigames package, etcCode:if (MinigameArea()) { minigame.InitializeGame; } else if (!MinigameArea()) { minigame.StopGame; }
Something like that should work