Diff
checker
Texto
Texto
Imagens
Documentos
Excel
Pastas
Legal
Enterprise
Aplicativo para desktop
Preços
Fazer login
Baixar o Diffchecker Desktop
Comparar texto
Encontre a diferença entre dois arquivos de texto
Ferramentas
Histórico
Editor live
Recolher inalteradas
Sem quebra de linha
Layout
Dividido
Unificado
Nível de detalhe
Inteligente
Palavra
Caractere
Realce de sintaxe
Escolher sintaxe
Ignorar
Transformar texto
Ir à primeira mudança
Editar entrada
Diffchecker Desktop
A maneira mais segura de usar o Diffchecker. Obtenha o aplicativo Diffchecker Desktop: seus diffs nunca saem do seu computador!
Obter Desktop
Untitled diff
Criado
há 9 anos
O diff nunca expira
Limpar
Exportar
Compartilhar
Explicar
1 remoção
Linhas
Total
Removido
Caracteres
Total
Removido
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
23 linhas
Copiar tudo
3 adições
Linhas
Total
Adicionado
Caracteres
Total
Adicionado
Para continuar usando este recurso, atualize para
Diff
checker
Pro
Ver preços
23 linhas
Copiar tudo
if(cmd.getName().equalsIgnoreCase("crmake")) {
if(cmd.getName().equalsIgnoreCase("crmake")) {
if(b.getType() != Material.CHEST) {
if(b.getType() != Material.CHEST) {
p.sendMessage(ChatColor.RED + "ChestRefill >> You should be looking directly at a Chest!");
p.sendMessage(ChatColor.RED + "ChestRefill >> You should be looking directly at a Chest!");
} else {
} else {
try {
try {
int t = 0;
int t = 0;
for(String s : ch.getConfigurationSection("Chests").getKeys(false)) {
for(String s : ch.getConfigurationSection("Chests").getKeys(false)) {
Copiar
Copiado
Copiar
Copiado
int i = Integer.parseInt(s);
int i = Integer.parseInt(s);
// if it's potato, it'll fail here
if(i >
0
) t = i;
if(i >
t
) t = i;
}
}
String w = loc.getWorld().getName();
String w = loc.getWorld().getName();
int locx = loc.getBlockX();
int locx = loc.getBlockX();
int locy = loc.getBlockY();
int locy = loc.getBlockY();
int locz = loc.getBlockZ();
int locz = loc.getBlockZ();
Copiar
Copiado
Copiar
Copiado
ch.set("Chests." + String.valueOf(t
) + ".location", w+"|"+locx+"|"+locy+"|"+locz);
ch.set("Chests." + String.valueOf(t
+1
) + ".location", w+"|"+locx+"|"+locy+"|"+locz);
ch.save(new File(main.getDataFolder(), "Chests.yml"));
ch.save(new File(main.getDataFolder(), "Chests.yml"));
p.sendMessage(ChatColor.DARK_GREEN + "ChestRefill >> Chest saved successfully!");
p.sendMessage(ChatColor.DARK_GREEN + "ChestRefill >> Chest saved successfully!");
} catch (Exception e) {
} catch (Exception e) {
p.sendMessage(ChatColor.DARK_RED + "ChestRefill >> Failed to save chest!");
p.sendMessage(ChatColor.DARK_RED + "ChestRefill >> Failed to save chest!");
e.printStackTrace();
e.printStackTrace();
}
}
}
}
}
}
Diferenças salvas
Texto original
Abrir arquivo
if(cmd.getName().equalsIgnoreCase("crmake")) { if(b.getType() != Material.CHEST) { p.sendMessage(ChatColor.RED + "ChestRefill >> You should be looking directly at a Chest!"); } else { try { int t = 0; for(String s : ch.getConfigurationSection("Chests").getKeys(false)) { int i = Integer.parseInt(s); if(i > 0) t = i; } String w = loc.getWorld().getName(); int locx = loc.getBlockX(); int locy = loc.getBlockY(); int locz = loc.getBlockZ(); ch.set("Chests." + String.valueOf(t) + ".location", w+"|"+locx+"|"+locy+"|"+locz); ch.save(new File(main.getDataFolder(), "Chests.yml")); p.sendMessage(ChatColor.DARK_GREEN + "ChestRefill >> Chest saved successfully!"); } catch (Exception e) { p.sendMessage(ChatColor.DARK_RED + "ChestRefill >> Failed to save chest!"); e.printStackTrace(); } } }
Texto alterado
Abrir arquivo
if(cmd.getName().equalsIgnoreCase("crmake")) { if(b.getType() != Material.CHEST) { p.sendMessage(ChatColor.RED + "ChestRefill >> You should be looking directly at a Chest!"); } else { try { int t = 0; for(String s : ch.getConfigurationSection("Chests").getKeys(false)) { int i = Integer.parseInt(s); // if it's potato, it'll fail here if(i > t) t = i; } String w = loc.getWorld().getName(); int locx = loc.getBlockX(); int locy = loc.getBlockY(); int locz = loc.getBlockZ(); ch.set("Chests." + String.valueOf(t+1) + ".location", w+"|"+locx+"|"+locy+"|"+locz); ch.save(new File(main.getDataFolder(), "Chests.yml")); p.sendMessage(ChatColor.DARK_GREEN + "ChestRefill >> Chest saved successfully!"); } catch (Exception e) { p.sendMessage(ChatColor.DARK_RED + "ChestRefill >> Failed to save chest!"); e.printStackTrace(); } } }
Encontrar Diferença