Add some info to cancel-command

This commit is contained in:
Blue (Lukas Rieger) 2021-06-23 14:50:05 +02:00
parent 4d6a83f62a
commit 3c0229811c
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -785,6 +785,7 @@ public int cancelCommand(CommandContext<S> context) {
if (!ref.isPresent()) {
plugin.getRenderManager().removeAllRenderTasks();
source.sendMessage(Text.of(TextColor.GREEN, "All tasks cancelled!"));
source.sendMessage(Text.of(TextColor.GRAY, "(Note, that an already started task might not be removed immediately. Some tasks needs to do some tidying-work first)"));
return 1;
}
@ -797,6 +798,7 @@ public int cancelCommand(CommandContext<S> context) {
if (plugin.getRenderManager().removeRenderTask(task.get())) {
source.sendMessage(Text.of(TextColor.GREEN, "Task cancelled!"));
source.sendMessage(Text.of(TextColor.GRAY, "(Note, that an already started task might not be removed immediately. Some tasks needs to do some tidying-work first)"));
return 1;
} else {
source.sendMessage(Text.of(TextColor.RED, "This task is either completed or got cancelled already!"));