package info.u_team.u_team_core.intern.data.provider;

import info.u_team.u_team_core.data.*;

public class UCoreLanguagesProvider extends CommonLanguagesProvider {
	
	public UCoreLanguagesProvider(GenerationData data) {
		super(data);
	}
	
	@Override
	public void addTranslations() {
		addUTeamCoreCommand();
	}
	
	private void addUTeamCoreCommand() {
		// Stack info
		// English
		final String stackInfoSuccess = "commands.uteamcore.stackinfo.success.";
		add(stackInfoSuccess + "item", "Item: %s");
		add(stackInfoSuccess + "block", "Block: %s");
		add(stackInfoSuccess + "nbt", "NBT: %s");
		
		// Ping
		// English
		final String pingSuccess = "commands.uteamcore.ping.success.";
		add(pingSuccess + "self", "Your ping is %sms");
		add(pingSuccess + "other", "%s's ping is %sms");
		
		// German
		add("de_de", pingSuccess + "self", "Dein Ping ist %sms");
		add("de_de", pingSuccess + "other", "%s's Ping ist %sms");
		
		// Dim teleport
		// English
		final String dimTeleportSuccess = "commands.uteamcore.dimteleport.success.";
		add(dimTeleportSuccess + "single", "Teleported %s to %s");
		add(dimTeleportSuccess + "multiple", "Teleported %s entities to %s");
		add(dimTeleportSuccess + "position.single", "Teleported %s to %s at %s, %s, %s");
		add(dimTeleportSuccess + "position.multiple", "Teleported %s entities to %s at %s, %s, %s");
	}
	
}

@@ -1342,14 +1342,698 @@
  %25s%22);%0A%09
-%7D%0A%09
+%09%0A%09%09// Locate biome%0A%09%09final String locateBiomeSuccess = %22commands.uteamcore.locatebiome.success%22;%0A%09%09final String locateBiomeFailed = %22commands.uteamcore.locatebiome.failed%22;%0A%09%09%0A%09%09add(locateBiomeSuccess, %22The nearest %25s is at %25s (%25s blocks away)%22);%0A%09%09add(locateBiomeFailed, %22Could not find a biome of type %5C%22%25s%5C%22 within reasonable distance%22);%0A%09%09%0A%09%09// Locate structure%0A%09%09final String locateStructureSuccess = %22commands.uteamcore.locatestructure.success%22;%0A%09%09final String locateStructureFailed = %22commands.uteamcore.locatestructure.failed%22;%0A%09%09%0A%09%09add(locateStructureSuccess, %22The nearest %25s is at %25s (%25s blocks away)%22);%0A%09%09add(locateStructureFailed, %22Could not find that structure nearby%22);%0A%09%7D
 %0A%7D%0A

Add translation keys for generation