chat commands: added total command for compatibility with other clients

This commit is contained in:
l2-
2017-08-20 11:25:22 +02:00
committed by Adam
parent a131541d8a
commit 8c742a6a5c

View File

@@ -99,7 +99,13 @@ public class ChatCommands extends Plugin
String message = setMessage.getValue();
if (config.price() && message.toLowerCase().startsWith("!price") && message.length() > 7)
if (config.lvl() && message.toLowerCase().equals("!total"))
{
logger.debug("Running total level lookup");
ScheduledExecutorService executor = runelite.getExecutor();
executor.submit(() -> playerSkillLookup(setMessage.getType(), setMessage, "total"));
}
else if (config.price() && message.toLowerCase().startsWith("!price") && message.length() > 7)
{
String search = message.substring(7);