mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
parent
ef59c833e3
commit
b88c6d8d26
43
pom.xml
43
pom.xml
@ -40,7 +40,48 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>bukkit</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<finalName>PlotSquared-Bukkit</finalName>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/com/plotsquared/sponge/**</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>sponge</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<finalName>PlotSquared-Sponge</finalName>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/com/plotsquared/bukkit/**</exclude>
|
||||||
|
<exclude>**/com/intellectualcrafters/plot/api/*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>api</id>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<finalName>PlotSquared-Null</finalName>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/com/plotsquared/bukkit/**</exclude>
|
||||||
|
<exclude>**/com/plotsquared/sponge/**</exclude>
|
||||||
|
<exclude>**/com/intellectualcrafters/plot/api/*</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -188,7 +188,13 @@ public class ExpireManager {
|
|||||||
last = dates.get(uuid);
|
last = dates.get(uuid);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
final OfflinePlayer op = Bukkit.getOfflinePlayer(name);
|
OfflinePlayer op;
|
||||||
|
if (Settings.TWIN_MODE_UUID) {
|
||||||
|
op = Bukkit.getOfflinePlayer(uuid);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
op = Bukkit.getOfflinePlayer(name);
|
||||||
|
}
|
||||||
if (op.hasPlayedBefore()) {
|
if (op.hasPlayedBefore()) {
|
||||||
last = op.getLastPlayed();
|
last = op.getLastPlayed();
|
||||||
dates.put(uuid, last);
|
dates.put(uuid, last);
|
||||||
|
@ -174,11 +174,13 @@ public class FileUUIDHandler extends UUIDHandlerImplementation {
|
|||||||
|
|
||||||
if (getUUIDMap().size() == 0) {
|
if (getUUIDMap().size() == 0) {
|
||||||
for (OfflinePlotPlayer op : uuidWrapper.getOfflinePlayers()) {
|
for (OfflinePlotPlayer op : uuidWrapper.getOfflinePlayers()) {
|
||||||
if (op.getLastPlayed() != 0) {
|
long last = op.getLastPlayed();
|
||||||
|
if (last != 0) {
|
||||||
String name = op.getName();
|
String name = op.getName();
|
||||||
StringWrapper wrap = new StringWrapper(name);
|
StringWrapper wrap = new StringWrapper(name);
|
||||||
UUID uuid = uuidWrapper.getUUID(op);
|
UUID uuid = uuidWrapper.getUUID(op);
|
||||||
toAdd.put(wrap, uuid);
|
toAdd.put(wrap, uuid);
|
||||||
|
ExpireManager.dates.put(uuid, last);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user