mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-02 09:07:08 +02:00
More cleanup
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1570 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -27,7 +27,7 @@ public class UserManager implements IConf
|
||||
return users.getBoolean(username.toLowerCase() + "." + SPY, false);
|
||||
}
|
||||
|
||||
public void setSpy(final String username, boolean spy) throws Exception
|
||||
public void setSpy(final String username, final boolean spy)
|
||||
{
|
||||
setUser(username.toLowerCase(), getAddress(username), spy);
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public class UserManager implements IConf
|
||||
return users.getString(username.toLowerCase() + "." + ADDRESS, null);
|
||||
}
|
||||
|
||||
public void setAddress(final String username, final String address) throws Exception
|
||||
public void setAddress(final String username, final String address)
|
||||
{
|
||||
setUser(username.toLowerCase(), address, isSpy(username));
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public class UserManager implements IConf
|
||||
return spyusers;
|
||||
}
|
||||
|
||||
private void setUser(String username, String address, boolean spy) throws Exception
|
||||
private void setUser(final String username, final String address, final boolean spy)
|
||||
{
|
||||
final Map<String, Object> userdata = new HashMap<String, Object>();
|
||||
userdata.put(ADDRESS, address);
|
||||
|
Reference in New Issue
Block a user