From dfca65436fb6473dc54b71befa30c51194161f0c Mon Sep 17 00:00:00 2001 From: Roman Zhuravlev Date: Wed, 3 Sep 2025 19:37:14 +0500 Subject: [PATCH] Don't check source if plugin is velocity --- .../velocity/entities/VelocityPluginDescription.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Velocity/src/main/java/net/frankheijden/serverutils/velocity/entities/VelocityPluginDescription.java b/Velocity/src/main/java/net/frankheijden/serverutils/velocity/entities/VelocityPluginDescription.java index 7506c50..cd5ccb2 100644 --- a/Velocity/src/main/java/net/frankheijden/serverutils/velocity/entities/VelocityPluginDescription.java +++ b/Velocity/src/main/java/net/frankheijden/serverutils/velocity/entities/VelocityPluginDescription.java @@ -24,9 +24,16 @@ public class VelocityPluginDescription implements ServerUtilsPluginDescription { this.description = description; Optional sourceOptional = description.getSource(); - if (!sourceOptional.isPresent()) throw new InvalidPluginDescriptionException("Source path is null"); + if (!sourceOptional.isPresent()) { + if (description.getId().equals("velocity")) { + this.file = null; + } else { + throw new InvalidPluginDescriptionException("Source path is null"); + } + } else { + this.file = sourceOptional.get().toFile(); + } - this.file = sourceOptional.get().toFile(); this.author = String.join(", ", description.getAuthors()); this.dependencies = description.getDependencies().stream() .map(PluginDependency::getId)