Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 9 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
1 suppression
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
23 lignes
Copier tout
3 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
23 lignes
Copier tout
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)) {
Copier
Copié
Copier
Copié
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();
Copier
Copié
Copier
Copié
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();
}
}
}
}
}
}
Différences enregistrées
Texte d'origine
Ouvrir un fichier
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(); } } }
Texte modifié
Ouvrir un fichier
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(); } } }
Trouver la différence