mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-19 13:01:20 +02:00
Updated Essentials to work with R5
This commit is contained in:
@@ -36,7 +36,7 @@ public class UserManager implements IConf
|
||||
|
||||
public final String getUserByAddress(final String search)
|
||||
{
|
||||
final List<String> usernames = users.getKeys(null);
|
||||
final Set<String> usernames = users.getKeys(false);
|
||||
for (String username : usernames)
|
||||
{
|
||||
final String address = users.getString(username + "." + ADDRESS, null);
|
||||
@@ -73,7 +73,7 @@ public class UserManager implements IConf
|
||||
{
|
||||
users.load();
|
||||
spyusers.clear();
|
||||
final List<String> keys = users.getKeys(null);
|
||||
final Set<String> keys = users.getKeys(false);
|
||||
for (String key : keys)
|
||||
{
|
||||
if (isSpy(key))
|
||||
|
@@ -183,7 +183,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
||||
if (config.getBoolean("log-enabled", false))
|
||||
{
|
||||
LOGGER.addHandler(this);
|
||||
logUsers = config.getStringList("log-users", new ArrayList<String>());
|
||||
logUsers = config.getStringList("log-users");
|
||||
final String level = config.getString("log-level", "info");
|
||||
try
|
||||
{
|
||||
@@ -351,7 +351,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
||||
|
||||
private void sendCommand(final Chat chat, final String message)
|
||||
{
|
||||
if (config.getStringList("op-users", new ArrayList<String>()).contains(StringUtils.parseBareAddress(chat.getParticipant())))
|
||||
if (config.getStringList("op-users").contains(StringUtils.parseBareAddress(chat.getParticipant())))
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user