From a34ba330b02d08d7c09de08d33304c35240db414 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sun, 23 Aug 2020 15:24:54 +0200 Subject: [PATCH] Fixed the copy command --- .../Indyuce/mmoitems/command/mmoitems/CopyCommandTreeNode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/Indyuce/mmoitems/command/mmoitems/CopyCommandTreeNode.java b/src/main/java/net/Indyuce/mmoitems/command/mmoitems/CopyCommandTreeNode.java index 30d248f9..7d401d24 100644 --- a/src/main/java/net/Indyuce/mmoitems/command/mmoitems/CopyCommandTreeNode.java +++ b/src/main/java/net/Indyuce/mmoitems/command/mmoitems/CopyCommandTreeNode.java @@ -48,6 +48,8 @@ public class CopyCommandTreeNode extends CommandTreeNode { config.getConfig().set(id2, config.getConfig().getConfigurationSection(id1)); config.save(); + MMOItems.plugin.getTemplates().requestTemplateUpdate(type, id2); + if (sender instanceof Player) new ItemEdition((Player) sender, MMOItems.plugin.getTemplates().getTemplate(type, id2)).open(); sender.sendMessage(MMOItems.plugin.getPrefix() + ChatColor.GREEN + "You successfully copied " + id1 + " to " + id2 + "!");