mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 15:02:26 +01:00
Add null check add DumpLog.addLine(CharSequence)
Cancels the DumpLog task (Forgot it)
This commit is contained in:
parent
298286180c
commit
9da01941d7
@ -50,8 +50,12 @@ public class ManageDumpCommand extends SubCommand {
|
||||
plugin.getRunnableFactory().createNew(new AbsRunnable("DumpTask") {
|
||||
@Override
|
||||
public void run() {
|
||||
sender.sendLink("Link to the Dump", DumpUtils.dump(plugin));
|
||||
sender.sendLink("Report Issues here", "https://github.com/Rsl1122/Plan-PlayerAnalytics/issues/new");
|
||||
try {
|
||||
sender.sendLink("Link to the Dump", DumpUtils.dump(plugin));
|
||||
sender.sendLink("Report Issues here", "https://github.com/Rsl1122/Plan-PlayerAnalytics/issues/new");
|
||||
} finally {
|
||||
this.cancel();
|
||||
}
|
||||
}
|
||||
}).runTaskAsynchronously();
|
||||
}
|
||||
|
@ -88,6 +88,11 @@ public class DumpLog {
|
||||
* @param line The content of the line
|
||||
*/
|
||||
private void addLine(CharSequence line) {
|
||||
if (line == null) {
|
||||
lines.add("\n");
|
||||
return;
|
||||
}
|
||||
|
||||
lines.add(line.toString());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user