Skip to content

Commit

Permalink
chore: Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Jan 22, 2025
1 parent 45be7e6 commit 3a35d0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>de.presti</groupId>
<artifactId>Ree6</artifactId>
<version>4.0.2</version>
<version>4.0.3</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@Slf4j
public class YamlPluginDescriptorFinder implements PluginDescriptorFinder {

public static final String DEFAULT_PROPERTIES_FILE_NAME = "plugin.yml";
public static final String DEFAULT_YAML_FILE_NAME = "plugin.yml";

public static final String PLUGIN_ID = "id";
public static final String PLUGIN_DESCRIPTION = "description";
Expand All @@ -30,14 +30,14 @@ public class YamlPluginDescriptorFinder implements PluginDescriptorFinder {
public static final String PLUGIN_REQUIRES = "requires";
public static final String PLUGIN_LICENSE = "license";

protected String propertiesFileName;
protected String yamlFileName;

public YamlPluginDescriptorFinder() {
this(DEFAULT_PROPERTIES_FILE_NAME);
this(DEFAULT_YAML_FILE_NAME);
}

public YamlPluginDescriptorFinder(String propertiesFileName) {
this.propertiesFileName = propertiesFileName;
public YamlPluginDescriptorFinder(String yamlFileName) {
this.yamlFileName = yamlFileName;
}

@Override
Expand All @@ -56,7 +56,7 @@ protected YamlConfiguration readYaml(Path pluginPath) {
YamlConfiguration yamlConfiguration;
try (ZipFile zip = new ZipFile(pluginPath.toFile())) {
log.debug("Lookup plugin descriptor in '{}'", pluginPath);
ZipEntry pluginEntry = zip.getEntry("plugin.yml");
ZipEntry pluginEntry = zip.getEntry(yamlFileName);

if (pluginEntry == null) {
throw new PluginRuntimeException("Cannot find 'plugin.yml' in {}", pluginPath);
Expand Down

0 comments on commit 3a35d0c

Please sign in to comment.