mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-06-29 10:07:54 -04:00
package: allow unused support prop
This commit is contained in:
@@ -941,15 +941,18 @@ public class Plugin implements Closeable
|
||||
|
||||
if (rlPluginProperties.size() != 0)
|
||||
{
|
||||
writeLog("warning: unused props in runelite-plugin.properties: {}\n", rlPluginProperties.keySet());
|
||||
|
||||
if (disallowedIsFatal)
|
||||
{
|
||||
var entry = rlPluginProperties.entrySet().iterator().next();
|
||||
throw PluginBuildException.of(this, "unknown {} key(s) in runelite-plugin.properties", rlPluginProperties.keySet())
|
||||
.withFileLine(propFile, entry.getKey() + "=" + entry.getValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
writeLog("warning: unused props in runelite-plugin.properties: {}\n", rlPluginProperties.keySet());
|
||||
rlPluginProperties.remove("support");
|
||||
|
||||
if (rlPluginProperties.size() != 0)
|
||||
{
|
||||
var entry = rlPluginProperties.entrySet().iterator().next();
|
||||
throw PluginBuildException.of(this, "unknown {} key(s) in runelite-plugin.properties", rlPluginProperties.keySet())
|
||||
.withFileLine(propFile, entry.getKey() + "=" + entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user