Diff
checker
Text
Text
Bilder
Dokumente
Excel
Ordner
Legal
Enterprise
Desktop-App
Preise
Einloggen
Diffchecker Desktop herunterladen
Texte vergleichen
Finde den Unterschied zwischen zwei Textdateien
Werkzeuge
Verlauf
Live-Editor
Gleiches ausblenden
Zeilenumbruch aus
Ansicht
Zweispaltig
Einspaltig
Vergleichsgenauigkeit
Intelligent
Wort
Zeichen
Syntaxhervorhebung
Syntax auswählen
Ignorieren
Text umwandeln
Zur ersten Änderung
Eingabe bearbeiten
Diffchecker Desktop
Der sicherste Weg, Diffchecker zu nutzen. Hol dir die Desktop-App: Deine Diffs verlassen nie deinen Computer!
Desktop holen
Untitled diff
Erstellt
vor 8 Jahren
Diff läuft nie ab
Löschen
Exportieren
Teilen
Erklären
44 Entfernungen
Zeilen
Gesamt
Entfernt
Zeichen
Gesamt
Entfernt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
50 Zeilen
Kopieren
35 Hinzufügungen
Zeilen
Gesamt
Hinzugefügt
Zeichen
Gesamt
Hinzugefügt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
41 Zeilen
Kopieren
if(sub.equalsIgnoreCase("spawn")){
if(sub.equalsIgnoreCase("spawn")){
if(p.hasPermission("potpvp.spawn")){
if(p.hasPermission("potpvp.spawn")){
Kopieren
Kopiert
Kopieren
Kopiert
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;
}
}
Kopieren
Kopiert
Kopieren
Kopiert
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;
new BukkitRunnable(){
}
@EventHandler
listaDePlayersTeletransportando.add(p.getUniqueId());
public void onMove(PlayerMoveEvent e){
conf
.getString("messages.spawn-
start-cooldown")
.replace('&', '§')
;
if(contadorempezado==true){
new BukkitRunnable
(){
e.getPlayer().sendMessage(Main.instance.getConfig()
.getString("messages.spawn-
cancel")
Location stored = p.getLocation().clone();
.replace('&', '§')
)
;
public void run() {
this.cancel();
if(contador > 0) {
}
Location current = p.getLocation();
}
if(current.getX() != stored.getX() && current.getZ() != stored.getZ()) {
public void run
(){
cancel(); //envia mensaje 'countdown cancelled'
if(contador > 1) {
return;
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);
}
}
Kopieren
Kopiert
Kopieren
Kopiert
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());
}
}
Kopieren
Kopiert
Kopieren
Kopiert
}
.runTaskTimer(Main.instance, 20L, 20L);
}
}
.runTaskTimer(Main.instance, 20L, 20L);
}else if(contadorempezado == true){
Main.instance.getConfig().getString("messages.spawn-start-cooldown").replace("&", "§");
}
}
}
}
}
Gespeicherte Diffs
Originaltext
Datei öffnen
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("&", "§"); } } }
Bearbeitung
Datei öffnen
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); } }
Unterschied finden