[Feature] Implemented a message to say teleporting to home. (#2489)

[Feature] Implemented a message to say teleporting to home.
This commit is contained in:
Glare Masters 2019-04-17 18:14:44 -05:00 committed by Joseph Hirschfeld
parent 722181439e
commit 26d63da7aa
2 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,7 @@ public class Commandhome extends EssentialsCommand {
throw new Exception(tl("noPerm", "essentials.worlds." + loc.getWorld().getName()));
}
user.getTeleport().teleport(loc, charge, TeleportCause.COMMAND);
user.sendMessage(tl("teleportHome", home));
}
@Override

View File

@ -520,6 +520,7 @@ teleportationEnabledFor=\u00a76Teleportation \u00a7cenabled \u00a76for \u00a7c{0
teleportAtoB=\u00a7c{0}\u00a76 teleported you to \u00a7c{1}\u00a76.
teleportDisabled=\u00a7c{0} \u00a74has teleportation disabled.
teleportHereRequest=\u00a7c{0}\u00a76 has requested that you teleport to them.
teleportHome=\u00a76Teleporting to \u00a7c{0}\u00a76.
teleporting=\u00a76Teleporting...
teleportInvalidLocation=Value of coordinates cannot be over 30000000
teleportNewPlayerError=\u00a74Failed to teleport new player\!