mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 08:18:35 +00:00
Implement region blacklisting
This commit is contained in:
@ -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")));
|
||||
}
|
||||
|
Reference in New Issue
Block a user