Skip to content

Commit cbb3a7a

Browse files
authored
Merge pull request #3310 from Multiverse/fix/spawn-command
Fix spawn command using deprecated teleport method
2 parents 02081b4 + 907a6dd commit cbb3a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/mvplugins/multiverse/core/commands/SpawnCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void handleSingleTeleport(MVCommandIssuer issuer, LoadedMultiverseWorld
108108
safetyTeleporter.to(mvWorld.getSpawnLocation())
109109
.by(issuer)
110110
.checkSafety(checkSafety)
111-
.teleport(entity)
111+
.teleportSingle(entity)
112112
.onSuccess(() -> issuer.sendInfo(MVCorei18n.SPAWN_SUCCESS,
113113
Replace.PLAYER.with(entity.equals(issuer.getPlayer())
114114
? Message.of(MVCorei18n.GENERIC_YOU)
@@ -119,7 +119,7 @@ private void handleSingleTeleport(MVCommandIssuer issuer, LoadedMultiverseWorld
119119
? Message.of(MVCorei18n.GENERIC_YOU)
120120
: Message.of(entity.getName())),
121121
Replace.WORLD.with(mvWorld.getName()),
122-
Replace.REASON.with(failure.getFailureMessage())));
122+
Replace.REASON.with(failure.getFirst().getFailureMessage())));
123123
}
124124

125125
private void handleMultiTeleport(MVCommandIssuer issuer, LoadedMultiverseWorld mvWorld,

0 commit comments

Comments
 (0)