mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-06 05:51:35 +00:00
[trunk] translations - halfway there
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1416 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
04044282ad
commit
07e49c3fbb
19 changed files with 113 additions and 52 deletions
|
@ -2,6 +2,7 @@ package com.earth2me.essentials.commands;
|
|||
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
@ -33,18 +34,18 @@ public class Commandlightning extends EssentialsCommand
|
|||
|
||||
if (server.matchPlayer(args[0]).isEmpty())
|
||||
{
|
||||
sender.sendMessage("§cPlayer not found");
|
||||
sender.sendMessage(Util.i18n("playerNotFound"));
|
||||
return;
|
||||
}
|
||||
|
||||
for (Player p : server.matchPlayer(args[0]))
|
||||
{
|
||||
sender.sendMessage("§7Smiting " + p.getDisplayName());
|
||||
sender.sendMessage(Util.format("lightningUse", p.getDisplayName()));
|
||||
p.getWorld().strikeLightning(p.getLocation());
|
||||
p.setHealth(p.getHealth() < 5 ? 0 : p.getHealth() - 5);
|
||||
if (ess.getSettings().warnOnSmite())
|
||||
{
|
||||
p.sendMessage("§7You have just been smited");
|
||||
p.sendMessage(Util.i18n("lightningSmited"));
|
||||
}
|
||||
}
|
||||
if (user != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue