Updated to lastest BukkitTelnet API

This commit is contained in:
unknown 2014-03-21 11:39:34 +01:00
parent cf135e211d
commit fa1a082972
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Tue Mar 18 16:17:54 CET 2014
build.number=704
#Fri Mar 21 11:38:49 CET 2014
build.number=705

View File

@ -1,5 +1,7 @@
package me.StevenLawson.TotalFreedomMod.Listener;
import me.StevenLawson.BukkitTelnet.api.TelnetCommandEvent;
import me.StevenLawson.BukkitTelnet.api.TelnetPreLoginEvent;
import me.StevenLawson.TotalFreedomMod.TFM_CommandBlocker;
import me.StevenLawson.TotalFreedomMod.TFM_Superadmin;
import me.StevenLawson.TotalFreedomMod.TFM_SuperadminList;
@ -12,7 +14,7 @@ import org.bukkit.event.Listener;
public class TFM_TelnetListener implements Listener
{
@EventHandler(priority = EventPriority.NORMAL)
public void onTelnetPreLogin(me.StevenLawson.BukkitTelnet.TelnetPreLoginEvent event)
public void onTelnetPreLogin(TelnetPreLoginEvent event)
{
final String ip = event.getIp();
@ -41,7 +43,7 @@ public class TFM_TelnetListener implements Listener
}
@EventHandler(priority = EventPriority.NORMAL)
public void onTelnetCommand(me.StevenLawson.BukkitTelnet.TelnetCommandEvent event)
public void onTelnetCommand(TelnetCommandEvent event)
{
if (TFM_CommandBlocker.getInstance().isCommandBlocked(event.getCommand(), event.getSender()))
{