mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Don't send teleport message before the teleportation is initiated
This commit is contained in:
parent
58faffed6d
commit
b768ee6d41
@ -395,8 +395,8 @@ public class Area extends SubCommand {
|
|||||||
final String world = this.setupUtils.setupWorld(builder);
|
final String world = this.setupUtils.setupWorld(builder);
|
||||||
if (this.worldUtil.isWorld(world)) {
|
if (this.worldUtil.isWorld(world)) {
|
||||||
PlotSquared.get().loadWorld(world, null);
|
PlotSquared.get().loadWorld(world, null);
|
||||||
player.sendMessage(TranslatableCaption.of("setup.setup_finished"));
|
|
||||||
player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND);
|
player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND);
|
||||||
|
player.sendMessage(TranslatableCaption.of("setup.setup_finished"));
|
||||||
if (area.getTerrain() != PlotAreaTerrainType.ALL) {
|
if (area.getTerrain() != PlotAreaTerrainType.ALL) {
|
||||||
QueueCoordinator queue = blockQueue.getNewQueue(worldUtil.getWeWorld(world));
|
QueueCoordinator queue = blockQueue.getNewQueue(worldUtil.getWeWorld(world));
|
||||||
queue.setChunkConsumer(chunk -> AugmentedUtils.generate(
|
queue.setChunkConsumer(chunk -> AugmentedUtils.generate(
|
||||||
@ -525,8 +525,8 @@ public class Area extends SubCommand {
|
|||||||
builder.generatorName(PlotSquared.platform().pluginName());
|
builder.generatorName(PlotSquared.platform().pluginName());
|
||||||
String world = this.setupUtils.setupWorld(builder);
|
String world = this.setupUtils.setupWorld(builder);
|
||||||
if (this.worldUtil.isWorld(world)) {
|
if (this.worldUtil.isWorld(world)) {
|
||||||
player.sendMessage(TranslatableCaption.of("setup.setup_finished"));
|
|
||||||
player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND);
|
player.teleport(this.worldUtil.getSpawn(world), TeleportCause.COMMAND);
|
||||||
|
player.sendMessage(TranslatableCaption.of("setup.setup_finished"));
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("errors.error_create"),
|
TranslatableCaption.of("errors.error_create"),
|
||||||
|
Loading…
Reference in New Issue
Block a user