diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java b/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java index 3f120037b..751fc628c 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtpahere.java @@ -1,7 +1,7 @@ package com.earth2me.essentials.commands; +import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.User; -import com.earth2me.essentials.Util; import org.bukkit.Server; @@ -23,11 +23,11 @@ public class Commandtpahere extends EssentialsCommand final User player = getPlayer(server, args, 0); if (!player.isTeleportEnabled()) { - throw new Exception(Util.format("teleportDisabled", player.getDisplayName())); + throw new Exception(_("teleportDisabled", player.getDisplayName())); } player.requestTeleport(user, true); - player.sendMessage(Util.format("teleportHereRequest", user.getDisplayName())); - player.sendMessage(Util.i18n("typeTpaccept")); - user.sendMessage(Util.format("requestSent", player.getDisplayName())); + player.sendMessage(_("teleportHereRequest", user.getDisplayName())); + player.sendMessage(_("typeTpaccept")); + user.sendMessage(_("requestSent", player.getDisplayName())); } } |