Skip to content

Commit

Permalink
fix invalid translation key being used in /npc copy command output
Browse files Browse the repository at this point in the history
  • Loading branch information
Grabsky committed Oct 10, 2024
1 parent b9a367c commit 483c061
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/oliver/fancynpcs/commands/npc/CopyCMD.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
import org.bukkit.entity.Player;
import org.incendo.cloud.annotations.Command;
import org.incendo.cloud.annotations.Permission;
import org.jetbrains.annotations.NotNull;

import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Pattern;

import org.jetbrains.annotations.NotNull;

// TO-DO: Console support with --position and --world parameter flags.
public enum CopyCMD {
INSTANCE; // SINGLETON
Expand Down Expand Up @@ -62,7 +63,7 @@ public void onCopy(
copied.create();
FancyNpcs.getInstance().getNpcManagerImpl().registerNpc(copied);
copied.spawnForAll();
translator.translate("npc_command_copy_success").replace("npc", npc.getData().getName()).replace("new_npc", copied.getData().getName()).send(sender);
translator.translate("npc_copy_success").replace("npc", npc.getData().getName()).replace("new_npc", copied.getData().getName()).send(sender);
} else {
translator.translate("command_npc_modification_cancelled").send(sender);
}
Expand Down

0 comments on commit 483c061

Please sign in to comment.