mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
Switch to the new I18n class and format cleanup of all classes
This commit is contained in:
parent
19f5a2340d
commit
220d68f375
207 changed files with 1247 additions and 1306 deletions
|
@ -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,15 +23,15 @@ public class Commandtpa extends EssentialsCommand
|
|||
User player = getPlayer(server, args, 0);
|
||||
if (!player.isTeleportEnabled())
|
||||
{
|
||||
throw new Exception(Util.format("teleportDisabled", player.getDisplayName()));
|
||||
throw new Exception(_("teleportDisabled", player.getDisplayName()));
|
||||
}
|
||||
if (!player.isIgnoredPlayer(user.getName()))
|
||||
{
|
||||
player.requestTeleport(user, false);
|
||||
player.sendMessage(Util.format("teleportRequest", user.getDisplayName()));
|
||||
player.sendMessage(Util.i18n("typeTpaccept"));
|
||||
player.sendMessage(Util.i18n("typeTpdeny"));
|
||||
player.sendMessage(_("teleportRequest", user.getDisplayName()));
|
||||
player.sendMessage(_("typeTpaccept"));
|
||||
player.sendMessage(_("typeTpdeny"));
|
||||
}
|
||||
user.sendMessage(Util.format("requestSent", player.getDisplayName()));
|
||||
user.sendMessage(_("requestSent", player.getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue