mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
.
This commit is contained in:
parent
9118f111e4
commit
82ccca8f63
2
pom.xml
2
pom.xml
@ -8,7 +8,7 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<artifactId>PlotSquared</artifactId>
|
<artifactId>PlotSquared</artifactId>
|
||||||
<version>3.2.20</version>
|
<version>3.2.21</version>
|
||||||
<name>PlotSquared</name>
|
<name>PlotSquared</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<build>
|
<build>
|
||||||
|
@ -1765,14 +1765,14 @@ public class MainUtil {
|
|||||||
if (!pw.ALLOW_SIGNS) {
|
if (!pw.ALLOW_SIGNS) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
Location loc = plot.getManager().getSignLoc(pw, plot);
|
Location loc = plot.getManager().getSignLoc(pw, plot);
|
||||||
ChunkManager.manager.loadChunk(loc.getWorld(), loc.getChunkLoc(), false);
|
ChunkManager.manager.loadChunk(loc.getWorld(), loc.getChunkLoc(), false);
|
||||||
String[] lines = BlockManager.manager.getSign(loc);
|
String[] lines = BlockManager.manager.getSign(loc);
|
||||||
if (lines == null) {
|
if (lines == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
loop:
|
loop: for (int i = 4; i > 0; i--) {
|
||||||
for (int i = 4; i > 0; i--) {
|
|
||||||
String caption = C.valueOf("OWNER_SIGN_LINE_" + i).s();
|
String caption = C.valueOf("OWNER_SIGN_LINE_" + i).s();
|
||||||
int index = caption.indexOf("%plr%");
|
int index = caption.indexOf("%plr%");
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
@ -1804,6 +1804,9 @@ public class MainUtil {
|
|||||||
plot.create();
|
plot.create();
|
||||||
}
|
}
|
||||||
return plot.owner;
|
return plot.owner;
|
||||||
|
} catch (Exception e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isUnowned(final String world, final PlotId pos1, final PlotId pos2) {
|
public static boolean isUnowned(final String world, final PlotId pos1, final PlotId pos2) {
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user