mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-28 02:51:57 +01:00
Removed unused users map
This commit is contained in:
parent
a53d8ddef1
commit
2b48045a8f
@ -58,7 +58,6 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
private transient Backup backup;
|
private transient Backup backup;
|
||||||
private transient BanWorkaround bans;
|
private transient BanWorkaround bans;
|
||||||
private transient ItemDb itemDb;
|
private transient ItemDb itemDb;
|
||||||
private transient final Map<String, User> users = new HashMap<String, User>();
|
|
||||||
private transient EssentialsUpdateTimer updateTimer;
|
private transient EssentialsUpdateTimer updateTimer;
|
||||||
private transient final Methods paymentMethod = new Methods();
|
private transient final Methods paymentMethod = new Methods();
|
||||||
private transient final static boolean enableErrorLogging = false;
|
private transient final static boolean enableErrorLogging = false;
|
||||||
@ -237,11 +236,6 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
|
|
||||||
Util.updateLocale(settings.getLocale(), this);
|
Util.updateLocale(settings.getLocale(), this);
|
||||||
|
|
||||||
for (User user : users.values())
|
|
||||||
{
|
|
||||||
user.reloadConfig();
|
|
||||||
}
|
|
||||||
|
|
||||||
// for motd
|
// for motd
|
||||||
getConfiguration().load();
|
getConfiguration().load();
|
||||||
}
|
}
|
||||||
@ -314,7 +308,7 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length - playerHidden));
|
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length - playerHidden));
|
||||||
m = m.replace("{UNIQUE}", Integer.toString(users.size()));
|
m = m.replace("{UNIQUE}", Integer.toString(userMap.getUniqueUsers()));
|
||||||
|
|
||||||
if (m.matches(".*\\{PLAYERLIST\\}.*"))
|
if (m.matches(".*\\{PLAYERLIST\\}.*"))
|
||||||
{
|
{
|
||||||
|
@ -104,4 +104,9 @@ public class UserMap implements Function<String, User>, IConf
|
|||||||
}
|
}
|
||||||
return userSet;
|
return userSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getUniqueUsers()
|
||||||
|
{
|
||||||
|
return users.size();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user