3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Fixed an NullPointerException with PlotSquared

Dieser Commit ist enthalten in:
MattBDev 2020-03-05 18:05:33 -05:00
Ursprung c1fe16b0e9
Commit e32e17b15c

Datei anzeigen

@ -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)) {