mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Fixed an NullPointerException with PlotSquared
This commit is contained in:
parent
c1fe16b0e9
commit
e32e17b15c
@ -108,6 +108,9 @@ public class PlotSquaredFeature extends FaweMaskManager {
|
||||
@Override
|
||||
public FaweMask getMask(Player player, MaskType type) {
|
||||
final PlotPlayer pp = PlotPlayer.wrap(player.getUniqueId());
|
||||
if (pp == null) {
|
||||
return null;
|
||||
}
|
||||
final Set<CuboidRegion> regions;
|
||||
Plot plot = pp.getCurrentPlot();
|
||||
if (isAllowed(player, plot, type)) {
|
||||
|
Loading…
Reference in New Issue
Block a user