mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-07 19:40:23 +01:00
Update KeywordReplacer.java
This commit is contained in:
parent
66355f0ead
commit
c92ae00f9f
@ -52,6 +52,7 @@ public class KeywordReplacer implements IText
|
|||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
displayName = user.getDisplayName();
|
displayName = user.getDisplayName();
|
||||||
ipAddress = user.getAddress() == null || user.getAddress().getAddress() == null ? "" : user.getAddress().getAddress().toString();
|
ipAddress = user.getAddress() == null || user.getAddress().getAddress() == null ? "" : user.getAddress().getAddress().toString();
|
||||||
|
address = user.getAddress() == null ? "" : user.getAddress().toString();
|
||||||
balance = NumberUtil.displayCurrency(user.getMoney(), ess);
|
balance = NumberUtil.displayCurrency(user.getMoney(), ess);
|
||||||
mails = Integer.toString(user.getMails().size());
|
mails = Integer.toString(user.getMails().size());
|
||||||
world = user.getLocation() == null || user.getLocation().getWorld() == null ? "" : user.getLocation().getWorld().getName();
|
world = user.getLocation() == null || user.getLocation().getWorld() == null ? "" : user.getLocation().getWorld().getName();
|
||||||
@ -141,7 +142,7 @@ public class KeywordReplacer implements IText
|
|||||||
if (extended)
|
if (extended)
|
||||||
{
|
{
|
||||||
line = line.replace("{IP}", ipAddress);
|
line = line.replace("{IP}", ipAddress);
|
||||||
line = line.replace("{ADDRESS}", ipAddress);
|
line = line.replace("{ADDRESS}", address);
|
||||||
line = line.replace("{PLUGINS}", plugins);
|
line = line.replace("{PLUGINS}", plugins);
|
||||||
line = line.replace("{VERSION}", version);
|
line = line.replace("{VERSION}", version);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user