mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Apply Sponge implicit wildcards after Bukkit style .* wildcards
This commit is contained in:
parent
6f96d9c7d1
commit
b4ff54ffc8
@ -106,7 +106,7 @@ public class LPNukkitBootstrap extends PluginBase implements LuckPermsBootstrap
|
|||||||
@Override
|
@Override
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
this.logger = new NukkitPluginLogger(getLogger());
|
this.logger = new NukkitPluginLogger(getLogger());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this.plugin.load();
|
this.plugin.load();
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -54,10 +54,6 @@ public class SpongeCalculatorFactory implements CalculatorFactory {
|
|||||||
|
|
||||||
processors.add(new MapProcessor());
|
processors.add(new MapProcessor());
|
||||||
|
|
||||||
if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_SPONGE_IMPLICIT_WILDCARDS)) {
|
|
||||||
processors.add(new SpongeWildcardProcessor());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.plugin.getConfiguration().get(ConfigKeys.APPLYING_REGEX)) {
|
if (this.plugin.getConfiguration().get(ConfigKeys.APPLYING_REGEX)) {
|
||||||
processors.add(new RegexProcessor());
|
processors.add(new RegexProcessor());
|
||||||
}
|
}
|
||||||
@ -66,6 +62,10 @@ public class SpongeCalculatorFactory implements CalculatorFactory {
|
|||||||
processors.add(new WildcardProcessor());
|
processors.add(new WildcardProcessor());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_SPONGE_IMPLICIT_WILDCARDS)) {
|
||||||
|
processors.add(new SpongeWildcardProcessor());
|
||||||
|
}
|
||||||
|
|
||||||
if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_SPONGE_DEFAULT_SUBJECTS)) {
|
if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_SPONGE_DEFAULT_SUBJECTS)) {
|
||||||
if (metadata.getHolderType().isUser()) {
|
if (metadata.getHolderType().isUser()) {
|
||||||
processors.add(new UserDefaultsProcessor(this.plugin.getService(), contexts.getContexts().makeImmutable()));
|
processors.add(new UserDefaultsProcessor(this.plugin.getService(), contexts.getContexts().makeImmutable()));
|
||||||
|
Loading…
Reference in New Issue
Block a user