mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
parent
ef59c833e3
commit
b88c6d8d26
43
pom.xml
43
pom.xml
@ -40,7 +40,48 @@
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<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>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
@ -188,7 +188,13 @@ public class ExpireManager {
|
||||
last = dates.get(uuid);
|
||||
}
|
||||
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()) {
|
||||
last = op.getLastPlayed();
|
||||
dates.put(uuid, last);
|
||||
|
@ -174,11 +174,13 @@ public class FileUUIDHandler extends UUIDHandlerImplementation {
|
||||
|
||||
if (getUUIDMap().size() == 0) {
|
||||
for (OfflinePlotPlayer op : uuidWrapper.getOfflinePlayers()) {
|
||||
if (op.getLastPlayed() != 0) {
|
||||
long last = op.getLastPlayed();
|
||||
if (last != 0) {
|
||||
String name = op.getName();
|
||||
StringWrapper wrap = new StringWrapper(name);
|
||||
UUID uuid = uuidWrapper.getUUID(op);
|
||||
toAdd.put(wrap, uuid);
|
||||
ExpireManager.dates.put(uuid, last);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user