From 6f9fa018b20654cdaf1a4bd132881b47d4851c67 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 12 Jun 2019 14:51:10 +0200 Subject: [PATCH] Fix FAVS undo count --- favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java | 2 +- .../com/thevoxelbox/voxelsniper/command/VoxelUndoCommand.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java index 4945f9c2f..79cb0003b 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/Sniper.java @@ -507,7 +507,7 @@ public class Sniper { count++; } if (count > 0) { - BBC.COMMAND_UNDO_SUCCESS.send(fp); + BBC.COMMAND_UNDO_SUCCESS.send(fp, count == 1 ? "" : " x" + count); } else { BBC.COMMAND_UNDO_ERROR.send(fp); } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/command/VoxelUndoCommand.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/command/VoxelUndoCommand.java index ad7601a75..97d9cd2eb 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/command/VoxelUndoCommand.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/command/VoxelUndoCommand.java @@ -27,7 +27,6 @@ public class VoxelUndoCommand extends VoxelCommand { } else { sniper.undo(); } -// plugin.getLogger().info("Player \"" + player.getName() + "\" used /u"); return true; } }