Partial fix for #267.

Still need to implement method to kick people off telnet if they are deactivated while connected.

Also - 800th commit! Woohoo!
This commit is contained in:
StevenLawson 2014-08-12 19:38:32 -04:00
parent 1a50c16d9a
commit 429269d8d2

View File

@ -5,8 +5,6 @@ import me.StevenLawson.BukkitTelnet.api.TelnetPreLoginEvent;
import me.StevenLawson.TotalFreedomMod.TFM_CommandBlocker;
import me.StevenLawson.TotalFreedomMod.TFM_Admin;
import me.StevenLawson.TotalFreedomMod.TFM_AdminList;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
@ -25,7 +23,7 @@ public class TFM_TelnetListener implements Listener
final TFM_Admin admin = TFM_AdminList.getEntryByIp(ip, true);
if (admin == null || !admin.isTelnetAdmin())
if (admin == null || !admin.isActivated() || !admin.isTelnetAdmin())
{
return;
}