Fixed teleport to island message.

This commit is contained in:
Tastybento 2018-01-03 20:43:58 -08:00
parent afa292986d
commit b324e7d0e0
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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)) {