When checking for a command such as /op from a StringList and then canceling the usage of this, the event.setcancled(true); does not stop this from happening and it carries on regardless.
CODE:
List<String> logcommands = plugin.Config.getStringList("Misc.commandlogger.commands");
for (String s : logcommands) {
if (plugin.Config.getBoolean("Misc.commandlogger.enabled", true)) {
if (message.startsWith(s))
}
}