Linkage #20
@ -309,7 +309,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
||||
if (pluginChecks.length != 0) {
|
||||
buildPlan.addImport("org.bukkit.Bukkit");
|
||||
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);
|
||||
}
|
||||
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
||||
@ -329,7 +329,7 @@ public class LinkageProcessor extends AbstractProcessor {
|
||||
if (pluginChecks.length != 0) {
|
||||
buildPlan.addImport("net.md_5.bungee.BungeeCord");
|
||||
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);
|
||||
}
|
||||
if (!checks.isEmpty()) stringConsumer.accept("if (" + String.join(" && ", checks) + ") {");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren