Add region priority getter

This commit is contained in:
Gabriele C 2018-08-20 00:56:35 +02:00
parent 8487298362
commit c71a728254
3 changed files with 13 additions and 1 deletions

View File

@ -15,4 +15,6 @@ public abstract class AbstractRegion {
public abstract Map<String, Object> getFlags(); public abstract Map<String, Object> getFlags();
public abstract int getPriority();
} }

View File

@ -71,6 +71,11 @@ public class WorldGuardImplementation extends AbstractWorldGuardImplementation {
public Object getFlag(String name) { public Object getFlag(String name) {
return region.getFlag(flagRegistry.get(name)); return region.getFlag(flagRegistry.get(name));
} }
@Override
public int getPriority() {
return region.getPriority();
}
}; };
} }

View File

@ -81,6 +81,11 @@ public class WorldGuardImplementation extends AbstractWorldGuardImplementation {
public Object getFlag(String name) { public Object getFlag(String name) {
return region.getFlag(flagRegistry.get(name)); return region.getFlag(flagRegistry.get(name));
} }
@Override
public int getPriority() {
return region.getPriority();
}
}; };
} }