mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-08 17:38:20 +01:00
[trunk] translations
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1398 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
0529db4a80
commit
164f592937
@ -1,6 +1,7 @@
|
||||
package com.earth2me.essentials.commands;
|
||||
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Server;
|
||||
|
||||
|
||||
@ -15,7 +16,7 @@ public class Commandback extends EssentialsCommand
|
||||
protected void run(Server server, User user, String commandLabel, String[] args) throws Exception
|
||||
{
|
||||
user.canAfford(this);
|
||||
user.sendMessage("§7Returning to previous location.");
|
||||
user.sendMessage(Util.i18n("backUsageMsg"));
|
||||
user.getTeleport().back(this.getName());
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package com.earth2me.essentials.commands;
|
||||
|
||||
import com.earth2me.essentials.Backup;
|
||||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
@ -23,6 +24,6 @@ public class Commandbackup extends EssentialsCommand
|
||||
}
|
||||
charge(sender);
|
||||
backup.run();
|
||||
sender.sendMessage("Backup started");
|
||||
sender.sendMessage(Util.i18n("backupStarted"));
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ public class Commandbalance extends EssentialsCommand
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
sender.sendMessage("§7Balance: " + Util.formatCurrency(getPlayer(server, args, 0).getMoney()));
|
||||
sender.sendMessage(Util.format("balance",Util.formatCurrency(getPlayer(server, args, 0).getMoney())));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -32,6 +32,6 @@ public class Commandbalance extends EssentialsCommand
|
||||
double bal = (args.length < 1 || !user.isAuthorized("essentials.balance.other")
|
||||
? user
|
||||
: getPlayer(server, args, 0)).getMoney();
|
||||
user.sendMessage("§7Balance: " + Util.formatCurrency(bal));
|
||||
user.sendMessage(Util.format("balance",Util.formatCurrency(bal)));
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
import com.earth2me.essentials.User;
|
||||
import com.earth2me.essentials.Util;
|
||||
|
||||
|
||||
public class Commandban extends EssentialsCommand
|
||||
@ -25,19 +26,19 @@ public class Commandban extends EssentialsCommand
|
||||
if (server.matchPlayer(args[0]).isEmpty())
|
||||
{
|
||||
((CraftServer)server).getHandle().a(args[0]);
|
||||
sender.sendMessage("§cPlayer " + args[0] + " banned");
|
||||
sender.sendMessage(Util.format("playerBanned",args[0]));
|
||||
}
|
||||
else
|
||||
{
|
||||
p = ess.getUser(server.matchPlayer(args[0]).get(0));
|
||||
String banReason = "Banned from server";
|
||||
String banReason = Util.i18n("defaultBanReason");
|
||||
if(args.length > 1) {
|
||||
banReason = getFinalArg(args, 1);
|
||||
p.setBanReason(commandLabel);
|
||||
}
|
||||
p.kickPlayer(banReason);
|
||||
((CraftServer)server).getHandle().a(p.getName());
|
||||
sender.sendMessage("§cPlayer " + p.getName() + " banned");
|
||||
sender.sendMessage(Util.format("playerBanned", p.getName()));
|
||||
}
|
||||
ess.loadBanList();
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.earth2me.essentials.commands;
|
||||
|
||||
import com.earth2me.essentials.Util;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
@ -21,7 +22,7 @@ public class Commandbanip extends EssentialsCommand
|
||||
}
|
||||
|
||||
((CraftServer)server).getHandle().c(args[0]);
|
||||
sender.sendMessage("§7Banned IP address.");
|
||||
sender.sendMessage(Util.i18n("banIpAddress"));
|
||||
ess.loadBanList();
|
||||
|
||||
}
|
||||
|
@ -59,11 +59,11 @@ public class Commandbigtree extends EssentialsCommand
|
||||
if (success)
|
||||
{
|
||||
charge(user);
|
||||
user.sendMessage("Big tree spawned.");
|
||||
user.sendMessage(Util.i18n("bigTreeSuccess"));
|
||||
}
|
||||
else
|
||||
{
|
||||
user.sendMessage("§cBig tree generation failure. Try again on grass or dirt.");
|
||||
user.sendMessage(Util.i18n("bigTreeFailure"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,4 +34,12 @@ couldNotFindTemplate = Could not find template {0}
|
||||
failedToWriteConfig = Failed to write config {0}
|
||||
failedToCloseConfig = Failed to close config {0}
|
||||
notEnoughMoney = You do not have sufficient funds.
|
||||
missingItems = You do not have {0}x {1}.
|
||||
missingItems = You do not have {0}x {1}.
|
||||
errorWithMessage = \u00a7cError: {0}
|
||||
backUsageMsg = \u00a77Returning to previous location.
|
||||
balance = \u00a77Balance: {0}
|
||||
playerBanned = \u00a7cPlayer {0} banned
|
||||
defaultBanReason = Banned from server
|
||||
banIpAddress = \u00a77Banned IP address
|
||||
bigTreeSuccess = \u00a77Big tree spawned.
|
||||
bigTreeFailure = \u00a7cBig tree generation failure. Try again on grass or dirt.
|
Loading…
Reference in New Issue
Block a user