mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-22 18:55:17 +01:00
Fixed teleport to island message.
This commit is contained in:
parent
afa292986d
commit
b324e7d0e0
@ -43,6 +43,8 @@ commands:
|
||||
go:
|
||||
parameters: "<home number>"
|
||||
description: "teleport you to your island"
|
||||
teleport: "&aTeleporting you to your island. &b/[label] help &afor help."
|
||||
teleported: "&aTeleported you to home &e#[number]."
|
||||
help:
|
||||
description: "The main island command"
|
||||
spawn:
|
||||
|
@ -625,9 +625,9 @@ public class IslandsManager {
|
||||
//player.sendBlockChange(home, Material.GLOWSTONE, (byte)0);
|
||||
User user = User.getInstance(player);
|
||||
if (number == 1) {
|
||||
user.sendMessage("island.teleport", "[label]", Settings.ISLANDCOMMAND);
|
||||
user.sendMessage("commands.island.go.teleport", "[label]", Settings.ISLANDCOMMAND);
|
||||
} else {
|
||||
user.sendMessage("island.teleported", "[number]", String.valueOf(number));
|
||||
user.sendMessage("commands.island.go.island.go.teleported", "[number]", String.valueOf(number));
|
||||
}
|
||||
// Exit spectator mode if in it
|
||||
if (player.getGameMode().equals(GameMode.SPECTATOR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user