forked from clone/WorldGuardWrapper
Add region priority getter
This commit is contained in:
parent
8487298362
commit
c71a728254
|
@ -15,4 +15,6 @@ public abstract class AbstractRegion {
|
|||
|
||||
public abstract Map<String, Object> getFlags();
|
||||
|
||||
public abstract int getPriority();
|
||||
|
||||
}
|
|
@ -71,6 +71,11 @@ public class WorldGuardImplementation extends AbstractWorldGuardImplementation {
|
|||
public Object getFlag(String name) {
|
||||
return region.getFlag(flagRegistry.get(name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPriority() {
|
||||
return region.getPriority();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -81,6 +81,11 @@ public class WorldGuardImplementation extends AbstractWorldGuardImplementation {
|
|||
public Object getFlag(String name) {
|
||||
return region.getFlag(flagRegistry.get(name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPriority() {
|
||||
return region.getPriority();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user