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,11 +219,9 @@ public class MonitorCommand implements CommandExecutor {
return; return;
} }
final Plugin plugin = PluginKit.getOperatePlugin(lastError.getStackTrace()); final Plugin plugin = PluginKit.getOperatePlugin(lastError.getStackTrace());
if (plugin != null) { sender.sendMessage(String.format(last_error, plugin != null ? plugin.getName() : "未知"));
sender.sendMessage(String.format(last_error, plugin.getName()));
lastError.printStackTrace(); lastError.printStackTrace();
} }
}
@Cmd @Cmd
public void lk(final CommandArgument e) { public void lk(final CommandArgument e) {