Added a telnet checker.

This commit is contained in:
Ryan 2014-05-10 22:40:32 +01:00
parent 46494a2c87
commit 31e03d6348

View File

@ -405,6 +405,25 @@ public class TFM_AdminList
return false; return false;
} }
public static boolean isTelnetAdmin(CommandSender sender, boolean verifySuperadmin)
{
if (verifySuperadmin)
{
if (!isSuperAdmin(sender))
{
return false;
}
}
final TFM_Admin entry = getEntry((Player) sender);
if (entry != null)
{
return entry.isTelnetAdmin();
}
return false;
}
public static boolean isIdentityMatched(Player player) public static boolean isIdentityMatched(Player player)
{ {
if (!isSuperAdmin(player)) if (!isSuperAdmin(player))