mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Add some info to cancel-command
This commit is contained in:
parent
4d6a83f62a
commit
3c0229811c
@ -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!"));
|
||||
|
Loading…
Reference in New Issue
Block a user