mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Fixed the copy command
This commit is contained in:
parent
f2bfdcf8c6
commit
a34ba330b0
@ -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 + "!");
|
||||
|
Loading…
Reference in New Issue
Block a user