Dieser Commit ist enthalten in:
Ursprung
a25ea3878d
Commit
fd0af779bc
@ -309,7 +309,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
|||||||
if (pluginChecks.length != 0) {
|
if (pluginChecks.length != 0) {
|
||||||
buildPlan.addImport("org.bukkit.Bukkit");
|
buildPlan.addImport("org.bukkit.Bukkit");
|
||||||
Arrays.stream(pluginChecks).map(pluginCheck -> {
|
Arrays.stream(pluginChecks).map(pluginCheck -> {
|
||||||
return "Bukkit.getPluginManager().getPlugin(\"" + pluginCheck.value() + "\") " + (pluginCheck.has() == PluginCheck.Has.THIS ? "=" : "!") + "= null";
|
return "Bukkit.getPluginManager().getPlugin(\"" + pluginCheck.value() + "\") " + (pluginCheck.has() == PluginCheck.Has.THIS ? "!" : "=") + "= null";
|
||||||
}).forEach(checks::add);
|
}).forEach(checks::add);
|
||||||
}
|
}
|
||||||
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
||||||
@ -329,7 +329,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
|||||||
if (pluginChecks.length != 0) {
|
if (pluginChecks.length != 0) {
|
||||||
buildPlan.addImport("net.md_5.bungee.BungeeCord");
|
buildPlan.addImport("net.md_5.bungee.BungeeCord");
|
||||||
Arrays.stream(pluginChecks).map(pluginCheck -> {
|
Arrays.stream(pluginChecks).map(pluginCheck -> {
|
||||||
return "BungeeCord.getPluginManager().getPlugin(\"" + pluginCheck.value() + "\") " + (pluginCheck.has() == PluginCheck.Has.THIS ? "=" : "!") + "= null";
|
return "BungeeCord.getPluginManager().getPlugin(\"" + pluginCheck.value() + "\") " + (pluginCheck.has() == PluginCheck.Has.THIS ? "!" : "=") + "= null";
|
||||||
}).forEach(checks::add);
|
}).forEach(checks::add);
|
||||||
}
|
}
|
||||||
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren