v1.0.1-BETA
This commit is contained in:
		
					parent
					
						
							
								e12642eb62
							
						
					
				
			
			
				commit
				
					
						c2ba644f21
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -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()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue