fix: 修复lasterror命令显示问题

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-08-16 12:13:58 +08:00
parent 31a2277672
commit 66c7508009

View File

@ -219,10 +219,8 @@ public class MonitorCommand implements CommandExecutor {
return;
}
final Plugin plugin = PluginKit.getOperatePlugin(lastError.getStackTrace());
if (plugin != null) {
sender.sendMessage(String.format(last_error, plugin.getName()));
lastError.printStackTrace();
}
sender.sendMessage(String.format(last_error, plugin != null ? plugin.getName() : "未知"));
lastError.printStackTrace();
}
@Cmd