v1.0.1-BETA

This commit is contained in:
LunarAkai 2024-03-24 14:20:29 +01:00
commit c2ba644f21

View file

@ -122,13 +122,14 @@ public class MinecleanerManager {
World world = player.getWorld();
PlayerStatistics ps = plugin.getCubesideStatistics().getStatistics(player.getUniqueId());
StatisticKey sg;
sg = statisticsTotalGamesPlayed.get(arena.getWidthIndex());
if(!isSuccessfullyCleared) {
world.playSound(player.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 0.5f, 0.5f);
player.sendMessage(ChatColor.YELLOW + "Game Over! Du konntest das Minecleaner-Feld nicht erfolgreich lösen!");
arena.showMines();
sg = statisticsTotalGamesPlayed.get(arena.getWidthIndex());
if(sg != null) {
ps.increaseScore(sg, 1);
@ -148,6 +149,10 @@ public class MinecleanerManager {
world.playSound(player.getLocation(), Sound.ENTITY_PLAYER_LEVELUP, 0.5f, 0.5f);
if(sg != null) {
ps.increaseScore(sg, 1);
}
ps.increaseScore(statisticsWonGamesTotal, 1);
sg = statisticsGames.get(arena.getWidthIndex());