mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 17:27:38 +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
|
@Override
|
||||||
public FaweMask getMask(Player player, MaskType type) {
|
public FaweMask getMask(Player player, MaskType type) {
|
||||||
final PlotPlayer pp = PlotPlayer.wrap(player.getUniqueId());
|
final PlotPlayer pp = PlotPlayer.wrap(player.getUniqueId());
|
||||||
|
if (pp == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Set<CuboidRegion> regions;
|
final Set<CuboidRegion> regions;
|
||||||
Plot plot = pp.getCurrentPlot();
|
Plot plot = pp.getCurrentPlot();
|
||||||
if (isAllowed(player, plot, type)) {
|
if (isAllowed(player, plot, type)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user