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:
Ursprung
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)) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren