[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
This commit is contained in:
ementalo 2011-05-04 11:23:45 +00:00
parent d0dc96542b
commit c4bf23211f
2 changed files with 2 additions and 0 deletions

View File

@ -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));

View File

@ -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: