fixed time again
This commit is contained in:
		
					parent
					
						
							
								72f53f8aad
							
						
					
				
			
			
				commit
				
					
						3cd55fa3fa
					
				
			
		
					 2 changed files with 14 additions and 11 deletions
				
			
		|  | @ -233,20 +233,23 @@ public class MinecleanerArena { | |||
|         arenaStatus = ArenaStatus.PLAYING; | ||||
|         currentGameStartTime = System.currentTimeMillis(); | ||||
| 
 | ||||
|         if((plugin.getManager().getSettingsValue("additionaldisplay", currentPlayer) != 0 | ||||
|                 || plugin.getManager().getSettingsValue("timer", currentPlayer) != 0) && arenaStatus == ArenaStatus.PLAYING) { | ||||
|             new BukkitRunnable() { | ||||
|                 @Override | ||||
|         new BukkitRunnable() { | ||||
|             @Override | ||||
|                 public void run() { | ||||
|                     if(arenaStatus == ArenaStatus.PLAYING && currentPlayer != null) { | ||||
|                 if(arenaStatus == ArenaStatus.PLAYING && currentPlayer != null) { | ||||
|                     if(!currentMinecleanerGame.gameover) { | ||||
|                         ingameTime++; | ||||
|                         updateIngameInfoTexts(); | ||||
|                     } else { | ||||
|                         cancel(); | ||||
|                     } | ||||
|                     if(plugin.getManager().getSettingsValue("additionaldisplay", currentPlayer) != 0 | ||||
|                             || plugin.getManager().getSettingsValue("timer", currentPlayer) != 0) { | ||||
|                         updateIngameInfoTexts(); | ||||
|                     } | ||||
|                 } else { | ||||
|                     cancel(); | ||||
|                 } | ||||
|             }.runTaskTimer(plugin, 1L, 1L); | ||||
|         } | ||||
|             } | ||||
|         }.runTaskTimer(plugin, 1L, 1L); | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|     public void addJoiningPlayer(Player player) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue