summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-10 19:57:59 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-10 19:57:59 +0000
commitbc79d5acfcaf6a112bbc22c9c387999f82d89201 (patch)
tree36cb2703850d497c459123f9a8fe04d22b0be4d7 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
parent0671150c4255565eb1168780d84a2ef68a3df023 (diff)
downloadEssentials-bc79d5acfcaf6a112bbc22c9c387999f82d89201.tar
Essentials-bc79d5acfcaf6a112bbc22c9c387999f82d89201.tar.gz
Essentials-bc79d5acfcaf6a112bbc22c9c387999f82d89201.tar.lz
Essentials-bc79d5acfcaf6a112bbc22c9c387999f82d89201.tar.xz
Essentials-bc79d5acfcaf6a112bbc22c9c387999f82d89201.zip
More translation stuff. Translated Spawn, Chat, Protect, GeoIP
Protect is only partly translated (sql stuff is not translated) EssentialsSpawn is changed to use the onCommand from Essentials jar, since that is more up to date. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1408 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
index d15ab6067..f256e185f 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java
@@ -2,6 +2,7 @@ package com.earth2me.essentials.protect;
import com.earth2me.essentials.Essentials;
import com.earth2me.essentials.User;
+import com.earth2me.essentials.Util;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.Block;
@@ -46,7 +47,7 @@ public class EssentialsProtectBlockListener extends BlockListener
{
if(Essentials.getStatic().getSettings().warnOnBuildDisallow())
{
- user.sendMessage(ChatColor.RED + "You are not permitted to build");
+ user.sendMessage(Util.i18n("buildAlert"));
}
event.setCancelled(true);
return;
@@ -63,7 +64,7 @@ public class EssentialsProtectBlockListener extends BlockListener
if (EssentialsProtect.checkProtectionItems(EssentialsProtect.onPlaceAlert, id))
{
- parent.alert(user, item.getType().toString(), "placed: ");
+ parent.alert(user, item.getType().toString(), Util.i18n("alertPlaced"));
}
if (spData.isBlockAboveProtectedRail(blockPlaced.getFace(BlockFace.DOWN)))
@@ -243,7 +244,7 @@ public class EssentialsProtectBlockListener extends BlockListener
if (EssentialsProtect.checkProtectionItems(EssentialsProtect.onBreakAlert, block.getTypeId()))
{
- parent.alert(user, block.getType().toString(), "broke: ");
+ parent.alert(user, block.getType().toString(), Util.i18n("alertBroke"));
}
if (user.isAuthorized("essentials.protect.admin"))