summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-04 11:23:45 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-04 11:23:45 +0000
commitc4bf23211fc5613f72ab43bbdc06f18bc5d9e006 (patch)
tree5fa263cd2c8a872c50a984079fed64f5684cd6c2
parentd0dc96542bd96e8af28fe00dd53891a05a618a6f (diff)
downloadEssentials-c4bf23211fc5613f72ab43bbdc06f18bc5d9e006.tar
Essentials-c4bf23211fc5613f72ab43bbdc06f18bc5d9e006.tar.gz
Essentials-c4bf23211fc5613f72ab43bbdc06f18bc5d9e006.tar.lz
Essentials-c4bf23211fc5613f72ab43bbdc06f18bc5d9e006.tar.xz
Essentials-c4bf23211fc5613f72ab43bbdc06f18bc5d9e006.zip
[trunk] {MAILS} in motd will show how many mails
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1339 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/Essentials.java1
-rw-r--r--Essentials/src/config.yml1
2 files changed, 2 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java
index 192192922..56b11f9cf 100644
--- a/Essentials/src/com/earth2me/essentials/Essentials.java
+++ b/Essentials/src/com/earth2me/essentials/Essentials.java
@@ -251,6 +251,7 @@ public class Essentials extends JavaPlugin
m = m.replace("{PLAYER}", user.getDisplayName());
m = m.replace("{IP}", user.getAddress().toString());
m = m.replace("{BALANCE}", Double.toString(user.getMoney()));
+ m = m.replace("{MAILS}", Integer.toString(user.getMails().size()));
}
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length));
diff --git a/Essentials/src/config.yml b/Essentials/src/config.yml
index 8fd1d020e..1fdeeb3cd 100644
--- a/Essentials/src/config.yml
+++ b/Essentials/src/config.yml
@@ -89,6 +89,7 @@ motd:
- '&fType &c/help&f for a list of commands.'
- 'Currently online: {PLAYERLIST}'
- 'Did you know that you can make [Disposal] signs with Essentials?'
+ - 'You have {MAILS} mail messages'
# The server rules, available by typing /rules
rules: