Refrain from using adventure in the PluginManager's

Otherwise we have the same issue in the ServerUtilsUpdater plugin with the different adventure shadings
This commit is contained in:
Frank van der Heijden 2021-08-03 18:34:31 +02:00
parent 0f9c6f4041
commit 11a5c5140b
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
10 changed files with 55 additions and 61 deletions

View file

@ -31,7 +31,6 @@ import net.frankheijden.serverutils.common.entities.results.Result;
import net.frankheijden.serverutils.common.entities.exceptions.InvalidPluginDescriptionException;
import net.frankheijden.serverutils.common.events.PluginEvent;
import net.frankheijden.serverutils.common.managers.AbstractPluginManager;
import net.kyori.adventure.text.minimessage.Template;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.PluginCommand;
@ -69,7 +68,7 @@ public class BukkitPluginManager extends AbstractPluginManager<Plugin, BukkitPlu
return pluginResults.addResult(pluginId, Result.INVALID_DESCRIPTION);
} catch (UnknownDependencyException ex) {
return pluginResults.addResult(pluginId, Result.UNKNOWN_DEPENDENCY,
Template.of("dependency", ex.getMessage())
"dependency", ex.getMessage()
);
} catch (InvalidPluginException ex) {
if (ex.getCause() instanceof IllegalArgumentException) {