Implement region blacklisting

This commit is contained in:
dordsor21
2021-09-23 01:19:24 +01:00
parent f0880a27a0
commit 7d894228d0
25 changed files with 657 additions and 491 deletions

View File

@ -84,7 +84,7 @@ public class ProvideBindings extends Bindings {
}
public Region[] regions(Player player, FaweMaskManager.MaskType type) {
Region[] regions = player.getCurrentRegions(type);
Region[] regions = player.getAllowedRegions(type);
if (regions == null) {
throw new IllegalArgumentException(Caption.toString(Caption.of("fawe.error.no.region")));
}