Fix #1281 , Fix #1282 , and Sponge gradle

This commit is contained in:
MattBDev 2016-07-29 12:31:45 -04:00
parent 1f341e6ba9
commit 610e204d12
5 changed files with 16 additions and 4 deletions

View File

@ -1850,6 +1850,9 @@ public class PlayerEvents extends PlotListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void onLeave(PlayerQuitEvent event) {
if (TaskManager.TELEPORT_QUEUE.contains(event.getPlayer().getName())) {
TaskManager.TELEPORT_QUEUE.remove(event.getPlayer().getName());
}
PlotPlayer pp = BukkitUtil.getPlayer(event.getPlayer());
pp.unregister();
}

View File

@ -207,7 +207,8 @@ public class PlotListener {
for (UUID uuid : plot.getOwners()) {
PlotPlayer owner = UUIDHandler.getPlayer(uuid);
if ((owner != null) && !owner.getUUID().equals(player.getUUID())) {
MainUtil.sendMessage(player, C.NOTIFY_LEAVE.s().replace("%player", player.getName()).replace("%plot", plot.getId().toString()));
MainUtil.sendMessage(owner, C.NOTIFY_LEAVE.s().replace("%player", player.getName()).replace("%plot", plot.getId()
.toString()));
}
}
}

View File

@ -14,7 +14,7 @@ buildscript {
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'net.minecrell.vanilla.server.library'
dependencies {
compile project(':Core')
@ -41,7 +41,7 @@ repositories {
}
}
minecraft {
version = "2014"
version = "1.10.2"
mappings = "snapshot_20160629"
runDir = 'run'
}

View File

@ -68,6 +68,14 @@ import org.spongepowered.api.world.gen.GenerationPopulator;
import org.spongepowered.api.world.gen.WorldGenerator;
import org.spongepowered.api.world.gen.WorldGeneratorModifier;
import java.io.File;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
@Plugin(id = "plotsquared", name = "PlotSquared", description = "Easy, yet powerful Plot World generation and management.",
url = "https://github.com/IntellectualSites/PlotSquared", version = "3.5.0-SNAPSHOT")
public class SpongeMain implements IPlotMain {

View File

@ -18,7 +18,7 @@ ext {
git = Grgit.open()
revision = "${git.head().abbreviatedId}"
}
version = "3.4.5-SNAPSHOT${revision}"
version = "3.4.5-SNAPSHOT-${revision}"
description = """PlotSquared"""
subprojects {