Fixed the copy command

This commit is contained in:
Indyuce 2020-08-23 15:24:54 +02:00
parent f2bfdcf8c6
commit a34ba330b0

View File

@ -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 + "!");