Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
空白の変更を非表示
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
テキストスタイル
外観を変更
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
Untitled diff
作成日
9 年前
差分は期限切れになりません
クリア
エクスポート
共有
説明
49 削除
行
合計
削除
文字
合計
削除
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
50 行
すべてコピー
26 追加
行
合計
追加
文字
合計
追加
この機能を引き続き使用するには、アップグレードしてください
Diff
checker
Pro
価格を見る
41 行
すべてコピー
if(sub.equalsIgnoreCase("spawn")){
if(sub.equalsIgnoreCase("spawn")){
if(p.hasPermission("potpvp.spawn")){
if(p.hasPermission("potpvp.spawn")){
コピー
コピー済み
コピー
コピー済み
if (
Main.instance.getConfig()
.getConfigurationSection("spawn") == null) {
FileConfiguration conf =
Main.instance.getConfig()
;
if (conf
.getConfigurationSection("spawn") == null) {
p.getPlayer().sendMessage("§cThe spawn has not yet been set!");
p.getPlayer().sendMessage("§cThe spawn has not yet been set!");
return true;
return true;
}
}
コピー
コピー済み
コピー
コピー済み
if(contadorempezado == false) {
if(listaDePlayersTeletransportando.contains(p.getUniqueId())){
contadorempezado =
true;
conf.getString("messages.spawn-start-cooldown").replace("&", "§"); //Que es esto, no mensaje de "ya estas teletransportando"?
Main.instance.getConfig()
.getString("messages.spawn-start-cooldown").replace('&', '§');
return
true;
}
listaDePlayersTeletransportando.add(p.getUniqueId());
conf
.getString("messages.spawn-start-cooldown").replace('&', '§');
new BukkitRunnable(){
new BukkitRunnable(){
@EventHandler
Location stored = p.getLocation().clone();
public void onMove(PlayerMoveEvent e){
public void run() {
if(contadorempezado==true){
if(contador > 0) {
e.getPlayer().sendMessage(Main.instance.getConfig().getString("messages.spawn-cancel")
Location current = p.getLocation();
.replace('&', '§'));
if(current.getX() != stored.getX() && current.getZ() != stored.getZ()) {
this.cancel();
cancel(); //envia mensaje 'countdown cancelled'
return;
}
}
コピー
コピー済み
コピー
コピー済み
}
public void run(){
if(contador > 1) {
コピー
コピー済み
コピー
コピー済み
contador = contador-1;
contador = contador-1;
DecimalFormat df = new DecimalFormat("#.#");
DecimalFormat df = new DecimalFormat("#.#");
//si contador es un integer, no es necessario..
p.sendMessage(
Bukkit.getPluginManager().getPlugin("PotPvP").getConfig()
p.sendMessage(
conf
.getString("messages.spawn-cooldown").replace('&', '§')
.getString("messages.spawn-cooldown").replace('&', '§')
.replace("{time}", df.format(contador)));
.replace("{time}", df.format(contador)));
} else {
} else {
this.cancel();
this.cancel();
Main.instance.getConfig()
.getString("messages.spawn").replace("&", "§");
conf
.getString("messages.spawn").replace("&", "§");
contador =
Main.instance.getConfig()
.getInt("spawn-cooldown");
contador =
conf
.getInt("spawn-cooldown");
World w = Bukkit.getWorld(
Main.instance.getConfig()
.getString("spawn.world"));
World w = Bukkit.getWorld(
conf
.getString("spawn.world"));
double x =
Main.instance.getConfig()
.getDouble("spawn.x");
double x =
conf
.getDouble("spawn.x");
double y =
Main.instance.getConfig()
.getDouble("spawn.y");
double y =
conf
.getDouble("spawn.y");
double z =
Main.instance.getConfig()
.getDouble("spawn.z");
double z =
conf
.getDouble("spawn.z");
p.teleport(new Location(w,x,y,z));
p.teleport(new Location(w,x,y,z));
Bukkit.getScheduler().runTaskLater(Main.instance, new Runnable(){
listaDePlayersTeletransportando.remove(p.getUniqueId());
@Override
public void run() {
contadorempezado = false;
}
}, Main.instance.getConfig().getInt("spawn-cooldown")*20L);
}
}
}
}
}.runTaskTimer(Main.instance, 20L, 20L);
}.runTaskTimer(Main.instance, 20L, 20L);
コピー
コピー済み
コピー
コピー済み
}else if(contadorempezado == true){
Main.instance.getConfig().getString("messages.spawn-start-cooldown").replace("&", "§");
}
}
}
}
}
保存された差分
原文
ファイルを開く
if(sub.equalsIgnoreCase("spawn")){ if(p.hasPermission("potpvp.spawn")){ if (Main.instance.getConfig().getConfigurationSection("spawn") == null) { p.getPlayer().sendMessage("§cThe spawn has not yet been set!"); return true; } if(contadorempezado == false) { contadorempezado = true; Main.instance.getConfig().getString("messages.spawn-start-cooldown").replace('&', '§'); new BukkitRunnable(){ @EventHandler public void onMove(PlayerMoveEvent e){ if(contadorempezado==true){ e.getPlayer().sendMessage(Main.instance.getConfig().getString("messages.spawn-cancel") .replace('&', '§')); this.cancel(); } } public void run(){ if(contador > 1) { contador = contador-1; DecimalFormat df = new DecimalFormat("#.#"); p.sendMessage(Bukkit.getPluginManager().getPlugin("PotPvP").getConfig() .getString("messages.spawn-cooldown").replace('&', '§') .replace("{time}", df.format(contador))); } else { this.cancel(); Main.instance.getConfig().getString("messages.spawn").replace("&", "§"); contador = Main.instance.getConfig().getInt("spawn-cooldown"); World w = Bukkit.getWorld(Main.instance.getConfig().getString("spawn.world")); double x = Main.instance.getConfig().getDouble("spawn.x"); double y = Main.instance.getConfig().getDouble("spawn.y"); double z = Main.instance.getConfig().getDouble("spawn.z"); p.teleport(new Location(w,x,y,z)); Bukkit.getScheduler().runTaskLater(Main.instance, new Runnable(){ @Override public void run() { contadorempezado = false; } }, Main.instance.getConfig().getInt("spawn-cooldown")*20L); } } }.runTaskTimer(Main.instance, 20L, 20L); }else if(contadorempezado == true){ Main.instance.getConfig().getString("messages.spawn-start-cooldown").replace("&", "§"); } } }
変更されたテキスト
ファイルを開く
if(sub.equalsIgnoreCase("spawn")){ if(p.hasPermission("potpvp.spawn")){ FileConfiguration conf = Main.instance.getConfig(); if (conf.getConfigurationSection("spawn") == null) { p.getPlayer().sendMessage("§cThe spawn has not yet been set!"); return true; } if(listaDePlayersTeletransportando.contains(p.getUniqueId())){ conf.getString("messages.spawn-start-cooldown").replace("&", "§"); //Que es esto, no mensaje de "ya estas teletransportando"? return true; } listaDePlayersTeletransportando.add(p.getUniqueId()); conf.getString("messages.spawn-start-cooldown").replace('&', '§'); new BukkitRunnable(){ Location stored = p.getLocation().clone(); public void run() { if(contador > 0) { Location current = p.getLocation(); if(current.getX() != stored.getX() && current.getZ() != stored.getZ()) { cancel(); //envia mensaje 'countdown cancelled' return; } contador = contador-1; DecimalFormat df = new DecimalFormat("#.#"); //si contador es un integer, no es necessario.. p.sendMessage(conf.getString("messages.spawn-cooldown").replace('&', '§') .replace("{time}", df.format(contador))); } else { this.cancel(); conf.getString("messages.spawn").replace("&", "§"); contador = conf.getInt("spawn-cooldown"); World w = Bukkit.getWorld(conf.getString("spawn.world")); double x = conf.getDouble("spawn.x"); double y = conf.getDouble("spawn.y"); double z = conf.getDouble("spawn.z"); p.teleport(new Location(w,x,y,z)); listaDePlayersTeletransportando.remove(p.getUniqueId()); } } }.runTaskTimer(Main.instance, 20L, 20L); } }
違いを見つける