mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Fixes #590
This commit is contained in:
parent
232091454a
commit
91c742c141
@ -1318,6 +1318,10 @@ public class PlayerEvents extends PlotListener implements Listener {
|
||||
return;
|
||||
}
|
||||
if (checkEntity(entity, plot)) {
|
||||
PlotPlayer owner = UUIDHandler.getPlayer(plot.owner);
|
||||
if (owner != null) {
|
||||
C.ENTITY_CAP.send(owner);
|
||||
}
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
@ -316,6 +316,10 @@ public enum C {
|
||||
POSITION_UNSET("$1Home position reset to the default location", "Position"),
|
||||
HOME_ARGUMENT("$2Use /plot set home [none]", "Position"),
|
||||
INVALID_POSITION("$2That is not a valid position value", "Position"),
|
||||
/*
|
||||
* Cap
|
||||
*/
|
||||
ENTITY_CAP("$2You are not allowed to spawn more mobs", "cap"),
|
||||
/*
|
||||
* Time
|
||||
*/
|
||||
|
@ -21,7 +21,7 @@ public abstract class LocalBlockQueue {
|
||||
public ScopedLocalBlockQueue getForChunk(int x, int z) {
|
||||
int bx = x << 4;
|
||||
int bz = z << 4;
|
||||
ScopedLocalBlockQueue scoped = new ScopedLocalBlockQueue(this, new Location(getWorld(), bx, 0, bz), new Location(getWorld(), bx + 15, 255, bz + 15));
|
||||
return new ScopedLocalBlockQueue(this, new Location(getWorld(), bx, 0, bz), new Location(getWorld(), bx + 15, 255, bz + 15));
|
||||
}
|
||||
|
||||
public abstract boolean next();
|
||||
|
@ -42,8 +42,8 @@ public class ScopedLocalBlockQueue extends DelegateLocalBlockQueue {
|
||||
}
|
||||
|
||||
public void fillBiome(String biome) {
|
||||
for (int x = minX; x <= maxX; x++) {
|
||||
for (int z = minZ; z < maxZ; z++) {
|
||||
for (int x = 0; x <= dx; x++) {
|
||||
for (int z = 0; z < dz; z++) {
|
||||
setBiome(x, z, biome);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user