Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
9 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
1 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
23 行
すべてコピー
3 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
23 行
すべてコピー
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)) {
コピー
コピー済み
コピー
コピー済み
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();
コピー
コピー済み
コピー
コピー済み
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();
}
}
}
}
}
}
保存された差分
原文
ファイルを開く
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(); } } }
変更されたテキスト
ファイルを開く
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(); } } }
違いを見つける