Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Untitled diff
Created
9 years ago
Diff never expires
Clear
Export
Share
Explain
1 removal
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
23 lines
Copy
3 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
23 lines
Copy
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)) {
Copy
Copied
Copy
Copied
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();
Copy
Copied
Copy
Copied
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();
}
}
}
}
}
}
Saved diffs
Original text
Open file
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(); } } }
Changed text
Open file
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(); } } }
Find difference