@Override public void execute() throws Exception { if (arg1.needPrepare()) { arg1.prepare(this, null, null); return; } NBTContainer container = arg1.getContainer(); NBTQuery query = arg1.getQuery(); List<Object> v = query.getParent().getValues(); v.addAll(query2.getValues()); NBTQuery newQuery = new NBTQuery(v); NBTBase root = container.getTag(); NBTBase base = query.get(root); if (base == null) { caller.send(PowerNBT.plugin.translate("fail_rename")); } else { root = query.remove(root); root = newQuery.set(root, base); container.setCustomTag(root); caller.send( PowerNBT.plugin.translate("success_rename", name) + NBTViewer.getShortValueWithPrefix(base, false)); } }