diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-10 19:57:59 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-10 19:57:59 +0000 |
commit | e846093fd0e8ea20c7ab9cec2deda2ae40573295 (patch) | |
tree | f7eee8b35466f3b12fcaea5359a93b05bd577d0d /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java | |
parent | 8e1f01810469131a18f2ac6898ad793c09b8a460 (diff) | |
download | Essentials-e846093fd0e8ea20c7ab9cec2deda2ae40573295.tar Essentials-e846093fd0e8ea20c7ab9cec2deda2ae40573295.tar.gz Essentials-e846093fd0e8ea20c7ab9cec2deda2ae40573295.tar.lz Essentials-e846093fd0e8ea20c7ab9cec2deda2ae40573295.tar.xz Essentials-e846093fd0e8ea20c7ab9cec2deda2ae40573295.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/EssentialsProtectPlayerListener.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java index b0381640e..758d0010a 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.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.block.Block; import org.bukkit.event.block.Action; @@ -39,7 +40,7 @@ public class EssentialsProtectPlayerListener extends PlayerListener { if(Essentials.getStatic().getSettings().warnOnBuildDisallow()) { - user.sendMessage(ChatColor.RED + "You are not permitted to build"); + user.sendMessage(Util.i18n("buildAlert")); } event.setCancelled(true); return; @@ -58,13 +59,12 @@ public class EssentialsProtectPlayerListener extends PlayerListener blockClicked); if (ownerName != null) { - user.sendMessage(ChatColor.GOLD + "[EssentialsProtect] Protection owner: " - + ownerName); + user.sendMessage(Util.format("protectionOwner", ownerName)); } } if (item != null && EssentialsProtect.checkProtectionItems(EssentialsProtect.onUseAlert, item.getTypeId())) { - parent.alert(user, item.getType().toString(), "used: "); + parent.alert(user, item.getType().toString(), Util.i18n("alertUsed")); } } } |