mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
Clean up TFM_CustomListener.
This commit is contained in:
parent
2d655e4009
commit
ed0aef033c
@ -1,6 +1,5 @@
|
||||
package me.StevenLawson.TotalFreedomMod.Listener;
|
||||
|
||||
import me.StevenLawson.TotalFreedomMod.TFM_Log;
|
||||
import me.StevenLawson.TotalFreedomMod.TFM_Superadmin;
|
||||
import me.StevenLawson.TotalFreedomMod.TFM_SuperadminList;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -13,11 +12,6 @@ public class TFM_CustomListener implements Listener
|
||||
public void onTelnetPreLogin(me.StevenLawson.BukkitTelnet.TelnetPreLoginEvent event)
|
||||
{
|
||||
String ip = event.getIp();
|
||||
String name = event.getName();
|
||||
boolean canBypassPassword = event.canBypassPassword();
|
||||
|
||||
TFM_Log.info("Caught TelnetPreLoginEvent: name: " + name + " - ip: " + ip + " - canBypassPassword: " + canBypassPassword);
|
||||
|
||||
if (ip != null && !ip.isEmpty())
|
||||
{
|
||||
TFM_Superadmin admin = TFM_SuperadminList.getAdminEntryByIP(ip, true);
|
||||
|
Loading…
Reference in New Issue
Block a user