mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Update BukkitTelnetBridge.java
This commit is contained in:
parent
8ac5bc827a
commit
11984bc46f
@ -148,10 +148,8 @@ public class BukkitTelnetBridge extends FreedomService
|
|||||||
final BukkitTelnet telnet = getBukkitTelnetPlugin();
|
final BukkitTelnet telnet = getBukkitTelnetPlugin();
|
||||||
if (telnet != null)
|
if (telnet != null)
|
||||||
{
|
{
|
||||||
final Iterator<ClientSession> it = telnet.appender.getSessions().iterator();
|
for (ClientSession session : telnet.appender.getSessions())
|
||||||
while (it.hasNext())
|
|
||||||
{
|
{
|
||||||
final ClientSession session = it.next();
|
|
||||||
if (name != null && name.equalsIgnoreCase(session.getUserName()))
|
if (name != null && name.equalsIgnoreCase(session.getUserName()))
|
||||||
{
|
{
|
||||||
sessionsToRemove.add(session);
|
sessionsToRemove.add(session);
|
||||||
|
Loading…
Reference in New Issue
Block a user