summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-05-23 22:09:28 +0100
committerKHobbits <rob@khobbits.co.uk>2013-05-23 22:12:54 +0100
commitd48c342e37f83c1dd8de06c59e2de62384739f95 (patch)
treedeb6fc3b5a49f8c119c0869b151b57b41ddfe32e
parent5c05870490e85188aa042d96a871b17f8b3145e1 (diff)
downloadEssentials-d48c342e37f83c1dd8de06c59e2de62384739f95.tar
Essentials-d48c342e37f83c1dd8de06c59e2de62384739f95.tar.gz
Essentials-d48c342e37f83c1dd8de06c59e2de62384739f95.tar.lz
Essentials-d48c342e37f83c1dd8de06c59e2de62384739f95.tar.xz
Essentials-d48c342e37f83c1dd8de06c59e2de62384739f95.zip
Fixing feed messages.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandfeed.java10
-rw-r--r--Essentials/src/messages.properties6
-rw-r--r--Essentials/src/messages_en.properties6
3 files changed, 14 insertions, 8 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandfeed.java b/Essentials/src/com/earth2me/essentials/commands/Commandfeed.java
index 73cce659e..feb148893 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandfeed.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandfeed.java
@@ -45,6 +45,8 @@ public class Commandfeed extends EssentialsCommand
{
//User does not need feeding.
}
+
+ user.sendMessage(_("feed"));
}
@Override
@@ -96,9 +98,13 @@ public class Commandfeed extends EssentialsCommand
{
throw new QuietAbortException();
}
-
+
player.setFoodLevel(flce.getFoodLevel() > 20 ? 20 : flce.getFoodLevel());
player.setSaturation(10);
- sender.sendMessage(sender.equals(player) ? _("feed") : _("feedOther", player.getDisplayName()));
+
+ if (!sender.equals(player))
+ {
+ sender.sendMessage(_("feedOther", player.getDisplayName()));
+ }
}
}
diff --git a/Essentials/src/messages.properties b/Essentials/src/messages.properties
index 80a703568..3efc691ec 100644
--- a/Essentials/src/messages.properties
+++ b/Essentials/src/messages.properties
@@ -115,7 +115,7 @@ failedToCreateConfig=Failed to create config {0}.
failedToWriteConfig=Failed to write config {0}.
false=\u00a74false\u00a7r
feed=\u00a76Your appetite was sated.
-feedOther=\u00a76Satisfied {0}\u00a76.
+feedOther=\u00a76You satiated the appetite of {0}\u00a76.
fileRenameError=Renaming file {0} failed!
fireworkColor=\u00a74Invalid firework charge parameters inserted, must set a color first.
fireworkEffectsCleared=\u00a76Removed all effects from held stack.
@@ -455,8 +455,8 @@ tempBanned=Temporarily banned from server for {0}.
tempbanExempt=\u00a74You may not tempban that player.
thunder= \u00a76You\u00a7c {0} \u00a76thunder in your world.
thunderDuration=\u00a76You\u00a7c {0} \u00a76thunder in your world for\u00a7c {1} \u00a76seconds.
-timeBeforeHeal=\u00a76Time before next heal:\u00a7c {0}\u00a76.
-timeBeforeTeleport=\u00a76Time before next teleport:\u00a7c {0}
+timeBeforeHeal=\u00a74Time before next heal:\u00a7c {0}\u00a76.
+timeBeforeTeleport=\u00a74Time before next teleport:\u00a7c {0}\u00a76.
timeFormat=\u00a7c{0}\u00a76 or \u00a7c{1}\u00a76 or \u00a7c{2}\u00a76.
timePattern=(?:([0-9]+)\\s*y[a-z]*[,\\s]*)?(?:([0-9]+)\\s*mo[a-z]*[,\\s]*)?(?:([0-9]+)\\s*w[a-z]*[,\\s]*)?(?:([0-9]+)\\s*d[a-z]*[,\\s]*)?(?:([0-9]+)\\s*h[a-z]*[,\\s]*)?(?:([0-9]+)\\s*m[a-z]*[,\\s]*)?(?:([0-9]+)\\s*(?:s[a-z]*)?)?
timeSet=\u00a76Time set in all worlds.
diff --git a/Essentials/src/messages_en.properties b/Essentials/src/messages_en.properties
index 80a703568..3efc691ec 100644
--- a/Essentials/src/messages_en.properties
+++ b/Essentials/src/messages_en.properties
@@ -115,7 +115,7 @@ failedToCreateConfig=Failed to create config {0}.
failedToWriteConfig=Failed to write config {0}.
false=\u00a74false\u00a7r
feed=\u00a76Your appetite was sated.
-feedOther=\u00a76Satisfied {0}\u00a76.
+feedOther=\u00a76You satiated the appetite of {0}\u00a76.
fileRenameError=Renaming file {0} failed!
fireworkColor=\u00a74Invalid firework charge parameters inserted, must set a color first.
fireworkEffectsCleared=\u00a76Removed all effects from held stack.
@@ -455,8 +455,8 @@ tempBanned=Temporarily banned from server for {0}.
tempbanExempt=\u00a74You may not tempban that player.
thunder= \u00a76You\u00a7c {0} \u00a76thunder in your world.
thunderDuration=\u00a76You\u00a7c {0} \u00a76thunder in your world for\u00a7c {1} \u00a76seconds.
-timeBeforeHeal=\u00a76Time before next heal:\u00a7c {0}\u00a76.
-timeBeforeTeleport=\u00a76Time before next teleport:\u00a7c {0}
+timeBeforeHeal=\u00a74Time before next heal:\u00a7c {0}\u00a76.
+timeBeforeTeleport=\u00a74Time before next teleport:\u00a7c {0}\u00a76.
timeFormat=\u00a7c{0}\u00a76 or \u00a7c{1}\u00a76 or \u00a7c{2}\u00a76.
timePattern=(?:([0-9]+)\\s*y[a-z]*[,\\s]*)?(?:([0-9]+)\\s*mo[a-z]*[,\\s]*)?(?:([0-9]+)\\s*w[a-z]*[,\\s]*)?(?:([0-9]+)\\s*d[a-z]*[,\\s]*)?(?:([0-9]+)\\s*h[a-z]*[,\\s]*)?(?:([0-9]+)\\s*m[a-z]*[,\\s]*)?(?:([0-9]+)\\s*(?:s[a-z]*)?)?
timeSet=\u00a76Time set in all worlds.