forked from GeyserMC/Geyser
		
	en_us user now gets a chat message if the locale isnt already loaded
This commit is contained in:
		
							parent
							
								
									013bca024c
								
							
						
					
					
						commit
						81c1533ee2
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		|  | @ -254,11 +254,17 @@ public class GeyserSession implements CommandSender { | ||||||
|                         playerEntity.setUuid(protocol.getProfile().getId()); |                         playerEntity.setUuid(protocol.getProfile().getId()); | ||||||
|                         playerEntity.setUsername(protocol.getProfile().getName()); |                         playerEntity.setUsername(protocol.getProfile().getName()); | ||||||
| 
 | 
 | ||||||
|                         // Should probably let the user know if there locale is |                         String locale = clientData.getLanguageCode(); | ||||||
|                         // en_us that it might take time to download it | 
 | ||||||
|  |                         // Let the user know there locale may take some time to download | ||||||
|  |                         // as it has to be extracted from a JAR | ||||||
|  |                         if (locale.toLowerCase().equals("en_us") && !LocaleUtils.LOCALE_MAPPINGS.containsKey("en_us")) { | ||||||
|  |                             connector.getLogger().info("warning user"); | ||||||
|  |                             sendMessage("Downloading your locale (en_us) this may take some time"); | ||||||
|  |                         } | ||||||
| 
 | 
 | ||||||
|                         // Download and load the language for the player |                         // Download and load the language for the player | ||||||
|                         LocaleUtils.downloadAndLoadLocale(clientData.getLanguageCode()); |                         LocaleUtils.downloadAndLoadLocale(locale); | ||||||
|                     } |                     } | ||||||
| 
 | 
 | ||||||
|                     @Override |                     @Override | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue