Improved find missing html admin command.
This commit is contained in:
@@ -169,6 +169,7 @@ public class AdminGeodata implements IAdminCommandHandler
|
|||||||
{
|
{
|
||||||
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
||||||
}
|
}
|
||||||
|
activeChar.sendMessage("Found " + results.size() + " results.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -187,9 +187,16 @@ public class HtmCache
|
|||||||
*/
|
*/
|
||||||
public boolean htmlNameExists(String search)
|
public boolean htmlNameExists(String search)
|
||||||
{
|
{
|
||||||
|
for (String s : _cache.keySet())
|
||||||
|
{
|
||||||
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
for (String s : _cache.values())
|
for (String s : _cache.values())
|
||||||
{
|
{
|
||||||
if (s.contains(search))
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -169,6 +169,7 @@ public class AdminGeodata implements IAdminCommandHandler
|
|||||||
{
|
{
|
||||||
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
||||||
}
|
}
|
||||||
|
activeChar.sendMessage("Found " + results.size() + " results.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -189,7 +189,14 @@ public class HtmCache
|
|||||||
{
|
{
|
||||||
for (String s : _cache.keySet())
|
for (String s : _cache.keySet())
|
||||||
{
|
{
|
||||||
if (s.contains(search))
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (String s : _cache.values())
|
||||||
|
{
|
||||||
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -169,6 +169,7 @@ public class AdminGeodata implements IAdminCommandHandler
|
|||||||
{
|
{
|
||||||
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
activeChar.sendMessage("NPC " + id + " does not have a default html.");
|
||||||
}
|
}
|
||||||
|
activeChar.sendMessage("Found " + results.size() + " results.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -189,7 +189,14 @@ public class HtmCache
|
|||||||
{
|
{
|
||||||
for (String s : _cache.keySet())
|
for (String s : _cache.keySet())
|
||||||
{
|
{
|
||||||
if (s.contains(search))
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (String s : _cache.values())
|
||||||
|
{
|
||||||
|
if (s.contains(search) && (!s.contains("quest")))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user