Fix some last minute things
This commit is contained in:
parent
984a86acab
commit
6edc1d7560
@ -110,7 +110,7 @@ public class GameCycle extends GameManager
|
|||||||
cancel();
|
cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 20, 10);
|
}, 10, 10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,6 +98,11 @@ public class GameCurrencyManager extends GameManager implements CurrencyComponen
|
|||||||
if (data != null)
|
if (data != null)
|
||||||
{
|
{
|
||||||
data.Games++;
|
data.Games++;
|
||||||
|
|
||||||
|
if (data.Games == 100)
|
||||||
|
{
|
||||||
|
event.getGame().addStat(player, "PlayInARow", 1, true, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -196,11 +201,6 @@ public class GameCurrencyManager extends GameManager implements CurrencyComponen
|
|||||||
statsManager.incrementStat(player, gameName + ".ExpEarned", exp);
|
statsManager.incrementStat(player, gameName + ".ExpEarned", exp);
|
||||||
statsManager.incrementStat(player, "Global.GamesPlayed", gamesPlayed);
|
statsManager.incrementStat(player, "Global.GamesPlayed", gamesPlayed);
|
||||||
require(TrackManager.class).getTrack(GemCollectorTrack.class).earnedGems(player, gems);
|
require(TrackManager.class).getTrack(GemCollectorTrack.class).earnedGems(player, gems);
|
||||||
|
|
||||||
if (data.Games >= 100)
|
|
||||||
{
|
|
||||||
statsManager.incrementStat(player, gameName + ".PlayInARow", 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove from session
|
// Remove from session
|
||||||
|
@ -19,6 +19,7 @@ import mineplex.core.common.util.UtilPlayer;
|
|||||||
import mineplex.core.common.util.UtilServer;
|
import mineplex.core.common.util.UtilServer;
|
||||||
import mineplex.core.gadget.event.GadgetEnableEvent;
|
import mineplex.core.gadget.event.GadgetEnableEvent;
|
||||||
import mineplex.core.gadget.persistence.UserGadgetPersistence;
|
import mineplex.core.gadget.persistence.UserGadgetPersistence;
|
||||||
|
import mineplex.core.pet.event.PetSpawnEvent;
|
||||||
import mineplex.core.teleport.event.MineplexTeleportEvent;
|
import mineplex.core.teleport.event.MineplexTeleportEvent;
|
||||||
import mineplex.game.nano.GameManager;
|
import mineplex.game.nano.GameManager;
|
||||||
import mineplex.game.nano.game.Game.GameState;
|
import mineplex.game.nano.game.Game.GameState;
|
||||||
@ -190,6 +191,17 @@ public class GamePlayerManager extends GameManager implements ComponentHook<Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void petSpawn(PetSpawnEvent event)
|
||||||
|
{
|
||||||
|
if (_hook == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void vehicleEnter(VehicleEnterEvent event)
|
public void vehicleEnter(VehicleEnterEvent event)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user