mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 17:45:08 +02:00
[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:
@@ -251,6 +251,7 @@ public class Essentials extends JavaPlugin
|
|||||||
m = m.replace("{PLAYER}", user.getDisplayName());
|
m = m.replace("{PLAYER}", user.getDisplayName());
|
||||||
m = m.replace("{IP}", user.getAddress().toString());
|
m = m.replace("{IP}", user.getAddress().toString());
|
||||||
m = m.replace("{BALANCE}", Double.toString(user.getMoney()));
|
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));
|
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length));
|
||||||
|
@@ -89,6 +89,7 @@ motd:
|
|||||||
- '&fType &c/help&f for a list of commands.'
|
- '&fType &c/help&f for a list of commands.'
|
||||||
- 'Currently online: {PLAYERLIST}'
|
- 'Currently online: {PLAYERLIST}'
|
||||||
- 'Did you know that you can make [Disposal] signs with Essentials?'
|
- 'Did you know that you can make [Disposal] signs with Essentials?'
|
||||||
|
- 'You have {MAILS} mail messages'
|
||||||
|
|
||||||
# The server rules, available by typing /rules
|
# The server rules, available by typing /rules
|
||||||
rules:
|
rules:
|
||||||
|
Reference in New Issue
Block a user