Addition of //geomap_missing_htmls admin command.

This commit is contained in:
MobiusDev
2017-06-21 22:45:44 +00:00
parent ce9c06afce
commit 96a6fc5a8b
9 changed files with 132 additions and 3 deletions

View File

@ -180,6 +180,23 @@ public class HtmCache
return (path == null) || path.isEmpty() ? "" : _cache.get(path) == null ? loadFile(new File(Config.DATAPACK_ROOT, path)) : _cache.get(path);
}
/**
* Used by admin_geomap_missing_htmls
* @param search String
* @return if html name exists
*/
public boolean htmlNameExists(String search)
{
for (String s : _cache.keySet())
{
if (s.contains(search))
{
return true;
}
}
return false;
}
public boolean contains(String path)
{
return _cache.containsKey(path);