Switch to the new I18n class and format cleanup of all classes

This commit is contained in:
snowleo 2011-11-21 02:55:26 +01:00
parent 19f5a2340d
commit 220d68f375
207 changed files with 1247 additions and 1306 deletions

View file

@ -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;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@ -31,7 +31,7 @@ public class Commandext extends EssentialsCommand
if (args.length < 1)
{
user.setFireTicks(0);
user.sendMessage(Util.i18n("extinguish"));
user.sendMessage(_("extinguish"));
return;
}
@ -43,7 +43,7 @@ public class Commandext extends EssentialsCommand
for (Player matchPlayer : server.matchPlayer(name))
{
matchPlayer.setFireTicks(0);
sender.sendMessage(Util.format("extinguishOthers", matchPlayer.getDisplayName()));
sender.sendMessage(_("extinguishOthers", matchPlayer.getDisplayName()));
}
}
}