mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-26 15:33:56 +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,9 +1,9 @@
|
|||
package com.earth2me.essentials.commands;
|
||||
|
||||
import com.earth2me.essentials.Console;
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import com.earth2me.essentials.IReplyTo;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
@ -32,10 +32,10 @@ public class Commandr extends EssentialsCommand
|
|||
|
||||
if (target == null)
|
||||
{
|
||||
throw new Exception(Util.i18n("foreverAlone"));
|
||||
throw new Exception(_("foreverAlone"));
|
||||
}
|
||||
|
||||
sender.sendMessage(Util.format("msgFormat", Util.i18n("me"), targetName, message));
|
||||
sender.sendMessage(_("msgFormat", _("me"), targetName, message));
|
||||
if (target instanceof Player)
|
||||
{
|
||||
User u = ess.getUser(target);
|
||||
|
@ -44,7 +44,7 @@ public class Commandr extends EssentialsCommand
|
|||
return;
|
||||
}
|
||||
}
|
||||
target.sendMessage(Util.format("msgFormat", senderName, Util.i18n("me"), message));
|
||||
target.sendMessage(_("msgFormat", senderName, _("me"), message));
|
||||
replyTo.setReplyTo(target);
|
||||
if (target != sender)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue